Changeset 846 for trunk/src/gui/util/qsystemtrayicon_wince.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/util/qsystemtrayicon_wince.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 156 156 case MYWM_NOTIFYICON: 157 157 { 158 RECT r;159 GetWindowRect(winId(), &r);160 QEvent *e = 0;161 Qt::KeyboardModifiers keys = QApplication::keyboardModifiers();162 158 QPoint gpos = QCursor::pos(); 163 159 … … 187 183 q->contextMenu()->move(gpos); 188 184 } 189 190 q->contextMenu()->activateWindow();191 //Must be activated for proper keyboardfocus and menu closing on windows:192 185 } 193 186 emit q->activated(QSystemTrayIcon::Context); … … 197 190 emit q->activated(QSystemTrayIcon::MiddleClick); 198 191 break; 192 199 193 default: 200 194 break; 201 }202 if (e) {203 bool res = QApplication::sendEvent(q, e);204 delete e;205 return res;206 195 } 207 196 break; … … 295 284 } 296 285 286 bool QSystemTrayIconPrivate::supportsMessages_sys() 287 { 288 return true; 289 } 290 297 291 QT_END_NAMESPACE 298 292
Note:
See TracChangeset
for help on using the changeset viewer.