Changeset 6097 for trunk/qt4-gui/src/views
- Timestamp:
- 03/15/08 06:23:52 (9 months ago)
- Files:
-
- 1 modified
-
trunk/qt4-gui/src/views/userviewbase.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/views/userviewbase.cpp
r5892 r6097 54 54 static T* getSendEventDialog(EventType type, QString id, unsigned long ppid) 55 55 { 56 int function; 57 if (type == ET_CONTACT) 58 function = mnuUserSendContact; 59 else if (type == ET_FILE) 60 function = mnuUserSendFile; 61 else if (type == ET_MESSAGE) 62 function = mnuUserSendMsg; 63 else if (type == ET_URL) 64 function = mnuUserSendUrl; 65 else 66 return NULL; 67 68 UserEventCommon* common = LicqGui::instance()->showEventDialog(function, id, ppid); 56 UserEventCommon* common = LicqGui::instance()->showEventDialog(type, id, ppid); 69 57 if (!common) 70 58 return NULL; … … 78 66 79 67 base->changeEventType(type); 80 dialog = dynamic_cast<T*>(LicqGui::instance()->showEventDialog( function, id, ppid));68 dialog = dynamic_cast<T*>(LicqGui::instance()->showEventDialog(type, id, ppid)); 81 69 if (!dialog) 82 70 return NULL; … … 89 77 static inline UserSendContactEvent* getSendContactEventDialog(QString id, unsigned long ppid) 90 78 { 91 return getSendEventDialog<UserSendContactEvent>( ET_CONTACT, id, ppid);79 return getSendEventDialog<UserSendContactEvent>(ContactEvent, id, ppid); 92 80 } 93 81 94 82 static inline UserSendFileEvent* getSendFileEventDialog(QString id, unsigned long ppid) 95 83 { 96 return getSendEventDialog<UserSendFileEvent>( ET_FILE, id, ppid);84 return getSendEventDialog<UserSendFileEvent>(FileEvent, id, ppid); 97 85 } 98 86 99 87 static inline UserSendMsgEvent* getSendMsgEventDialog(QString id, unsigned long ppid) 100 88 { 101 return getSendEventDialog<UserSendMsgEvent>( ET_MESSAGE, id, ppid);89 return getSendEventDialog<UserSendMsgEvent>(MessageEvent, id, ppid); 102 90 } 103 91 104 92 static inline UserSendUrlEvent* getSendUrlEventDialog(QString id, unsigned long ppid) 105 93 { 106 return getSendEventDialog<UserSendUrlEvent>( ET_URL, id, ppid);94 return getSendEventDialog<UserSendUrlEvent>(UrlEvent, id, ppid); 107 95 } 108 96
