Changeset 6185 for trunk/qt4-gui/src/userevents
- Timestamp:
- 05/06/08 04:50:29 (7 months ago)
- Location:
- trunk/qt4-gui/src/userevents
- Files:
-
- 4 modified
-
usersendcommon.cpp (modified) (2 diffs)
-
usersendcommon.h (modified) (1 diff)
-
userviewevent.cpp (modified) (5 diffs)
-
userviewevent.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/userevents/usersendcommon.cpp
r6182 r6185 404 404 gUserManager.DropUser(u); 405 405 406 connect( gMainWindow, SIGNAL(signal_sentevent(ICQEvent*)),407 myHistoryView, SLOT(addMsg( ICQEvent*)));406 connect(LicqGui::instance(), SIGNAL(eventSent(const ICQEvent*)), 407 myHistoryView, SLOT(addMsg(const ICQEvent*))); 408 408 //myViewSplitter->setResizeMode(myHistoryView, QSplitter::FollowSizeHint); 409 409 } … … 1200 1200 if (sendDone(e)) 1201 1201 { 1202 emit gMainWindow->signal_sentevent(e);1202 emit eventSent(e); 1203 1203 if (Config::Chat::instance()->msgChatView() && myHistoryView != NULL) 1204 1204 { -
trunk/qt4-gui/src/userevents/usersendcommon.h
r6108 r6185 61 61 void updateUser(CICQSignal* sig); 62 62 void msgTypeChanged(UserSendCommon* from, UserSendCommon* to); 63 64 /** 65 * Since daemon doesn't notify us when an event is sent we'll have to handle 66 * it ourselfs. This signal is sent to notify other windows about the event 67 * that was sent. 68 * 69 * @param event Event object that was sent 70 */ 71 void eventSent(const ICQEvent* event); 63 72 64 73 public slots: -
trunk/qt4-gui/src/userevents/userviewevent.cpp
r6166 r6185 23 23 #include "config.h" 24 24 25 #include <QAction> 25 26 #include <QApplication> 26 27 #include <QCheckBox> … … 48 49 #include "core/gui-defines.h" 49 50 #include "core/licqgui.h" 50 #include "core/mainwin.h"51 51 #include "core/messagebox.h" 52 52 #include "core/signalmanager.h" … … 90 90 connect(myMessageList, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)), 91 91 SLOT(printMessage(QTreeWidgetItem*))); 92 connect( gMainWindow, SIGNAL(signal_sentevent(ICQEvent*)),93 SLOT(sentEvent( ICQEvent*)));92 connect(LicqGui::instance(), SIGNAL(eventSent(const ICQEvent*)), 93 SLOT(sentEvent(const ICQEvent*))); 94 94 95 95 myActionsBox = new QGroupBox(); … … 779 779 } 780 780 781 void UserViewEvent::sentEvent( ICQEvent* e)781 void UserViewEvent::sentEvent(const ICQEvent* e) 782 782 { 783 783 if (e->PPID() != myPpid || strcmp(myUsers.front().c_str(), e->Id()) != 0) … … 785 785 786 786 if (!Config::Chat::instance()->msgChatView()) 787 new MessageListItem(e-> GrabUserEvent(), myCodec, myMessageList);787 new MessageListItem(e->UserEvent(), myCodec, myMessageList); 788 788 } 789 789 -
trunk/qt4-gui/src/userevents/userviewevent.h
r6166 r6185 82 82 void msgTypeChanged(UserSendCommon* from, UserSendCommon* to); 83 83 void printMessage(QTreeWidgetItem* item); 84 void sentEvent( ICQEvent* e);84 void sentEvent(const ICQEvent* e); 85 85 void setEncoding(); 86 86 };
