Changeset 6000
- Timestamp:
- 01/08/08 06:03:05 (8 months ago)
- Location:
- branches/qt-gui_qt4/src
- Files:
-
- 4 modified
-
core/systemmenu.cpp (modified) (4 diffs)
-
core/systemmenu.h (modified) (1 diff)
-
core/usermenu.cpp (modified) (2 diffs)
-
userevents/usereventcommon.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/qt-gui_qt4/src/core/systemmenu.cpp
r5892 r6000 39 39 #include "dialogs/awaymsgdlg.h" 40 40 #include "dialogs/editgrpdlg.h" 41 #include "dialogs/historydlg.h" 41 42 #include "dialogs/logwindow.h" 42 43 #include "dialogs/ownermanagerdlg.h" … … 553 554 // System sub menu 554 555 myOwnerAdmMenu = new QMenu(protoName); 555 connect(myOwnerAdmMenu, SIGNAL(triggered(QAction*)), SLOT(ownerAdmFunction(QAction*))); 556 myOwnerAdmInfoAction = myOwnerAdmMenu->addAction(tr("&Info...")); 557 myOwnerAdmInfoAction->setData(mnuUserGeneral); 558 myOwnerAdmHistoryAction = myOwnerAdmMenu->addAction(tr("View &History...")); 559 myOwnerAdmHistoryAction->setData(mnuUserHistory); 556 myOwnerAdmInfoAction = myOwnerAdmMenu->addAction(tr("&Info..."), this, SLOT(viewInfo())); 557 myOwnerAdmHistoryAction = myOwnerAdmMenu->addAction(tr("View &History..."), this, SLOT(viewHistory())); 560 558 561 559 // Status sub menu … … 674 672 } 675 673 676 void OwnerData::ownerAdmFunction(QAction* action) 677 { 678 int id = action->data().toInt(); 679 674 void OwnerData::viewInfo() 675 { 680 676 ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 681 677 if (o == NULL) … … 684 680 QString userid = o->IdString(); 685 681 gUserManager.DropOwner(myPpid); 686 LicqGui::instance()->showInfoDialog(id, userid, myPpid); 682 LicqGui::instance()->showInfoDialog(mnuUserGeneral, userid, myPpid); 683 } 684 685 void OwnerData::viewHistory() 686 { 687 ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 688 if (o == NULL) 689 return; 690 691 QString userid = o->IdString(); 692 gUserManager.DropOwner(myPpid); 693 new HistoryDlg(userid, myPpid); 687 694 } 688 695 -
branches/qt-gui_qt4/src/core/systemmenu.h
r5885 r6000 243 243 private slots: 244 244 void aboutToShowStatusMenu(); 245 void ownerAdmFunction(QAction* action); 245 void viewInfo(); 246 void viewHistory(); 246 247 void setStatus(QAction* action); 247 248 void toggleInvisibleStatus(); -
branches/qt-gui_qt4/src/core/usermenu.cpp
r5892 r6000 38 38 #include "dialogs/customautorespdlg.h" 39 39 #include "dialogs/gpgkeyselect.h" 40 #include "dialogs/historydlg.h" 40 41 #include "dialogs/keyrequestdlg.h" 41 42 #include "dialogs/reqauthdlg.h" … … 382 383 void UserMenu::viewHistory() 383 384 { 384 LicqGui::instance()->showInfoDialog(mnuUserHistory,myId, myPpid);385 new HistoryDlg(myId, myPpid); 385 386 } 386 387 -
branches/qt-gui_qt4/src/userevents/usereventcommon.cpp
r5837 r6000 44 44 #include "core/usermenu.h" 45 45 46 #include "dialogs/historydlg.h" 46 47 #include "dialogs/keyrequestdlg.h" 47 48 … … 373 374 void UserEventCommon::slotShowHistory() 374 375 { 375 LicqGui::instance()->showInfoDialog(mnuUserHistory, myUsers.front().c_str(), myPpid, true);376 new HistoryDlg(myUsers.front().c_str(), myPpid); 376 377 } 377 378
