3 #include <qpushbutton.h>
4 #include <qtoolbutton.h>
9 #if QT_VERSION > 0x03FFFF
15 #define QT_VERSION_PRE3
33 connect(glv->get_widget(), SIGNAL(itemClicked(QTableWidgetItem*)),
this, SLOT(qtwi_clicked(QTableWidgetItem*)) );
35 connect(glv->get_widget(), SIGNAL(clicked(QListViewItem*)),
this, SLOT(qlvi_clicked(QListViewItem*)) );
41 if(receiver) connect(gtb->qtb, SIGNAL(clicked()), receiver, member );
45 if(receiver) connect(gb->qpb, SIGNAL(clicked()), receiver, member );
51 connect(gle->qle, SIGNAL(editingFinished()), receiver, member );
54 connect(gle->qle, SIGNAL(lostFocus()), receiver, member );
56 connect(gle->qle, SIGNAL(returnPressed()), receiver, member );
64 void qlvi_clicked(QListViewItem* item) {
66 Log<OdinQt> odinlog(
"SlotDispatcher",
"qlvi_clicked");
67 ODINLOG(odinlog,normalDebug) <<
"item=" << item << STD_endl;
68 if(!glv_cb_cache)
return;
71 ODINLOG(odinlog,normalDebug) <<
"GuiListItem(); done" << STD_endl;
72 STD_map<QListViewItem*,GuiListItem*>::iterator it=GuiListItem::listmap->find(item);
73 if(it!=GuiListItem::listmap->end()) itemptr=it->second;
74 ODINLOG(odinlog,normalDebug) <<
"itemptr=" << itemptr << STD_endl;
75 glv_cb_cache->clicked(itemptr);
79 void qtwi_clicked(QTableWidgetItem* item) {
81 Log<OdinQt> odinlog(
"SlotDispatcher",
"qtwi_clicked");
82 ODINLOG(odinlog,normalDebug) <<
"item=" << item << STD_endl;
83 if(!glv_cb_cache)
return;
86 ODINLOG(odinlog,normalDebug) <<
"GuiListItem(); done" << STD_endl;
87 STD_map<QTableWidgetItem*,GuiListItem*>::iterator it=GuiListItem::tablemap->find(item);
88 if(it!=GuiListItem::tablemap->end()) itemptr=it->second;
89 ODINLOG(odinlog,normalDebug) <<
"itemptr=" << itemptr << STD_endl;
90 glv_cb_cache->clicked(itemptr);
102 GuiListViewCallback* glv_cb_cache;