Changeset 846 for trunk/src/gui/graphicsview/qgraphicsproxywidget.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/graphicsview/qgraphicsproxywidget.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) … … 976 976 } 977 977 break; 978 #ifndef QT_NO_TOOLTIP 978 979 case QEvent::ToolTipChange: 979 980 // Propagate tooltip change to the proxy. … … 984 985 } 985 986 break; 987 #endif 986 988 default: 987 989 break; … … 1025 1027 pos = d->mapToReceiver(pos, receiver); 1026 1028 1029 QPoint globalPos = receiver->mapToGlobal(pos.toPoint()); 1030 //If the receiver by-pass the proxy its popups 1031 //will be top level QWidgets therefore they need 1032 //the screen position. mapToGlobal expect the widget to 1033 //have proper coordinates in regards of the windowing system 1034 //but it's not true because the widget is embedded. 1035 if (bypassGraphicsProxyWidget(receiver)) 1036 globalPos = event->screenPos(); 1037 1027 1038 // Send mouse event. ### Doesn't propagate the event. 1028 1039 QContextMenuEvent contextMenuEvent(QContextMenuEvent::Reason(event->reason()), 1029 pos.toPoint(), receiver->mapToGlobal(pos.toPoint()), event->modifiers());1040 pos.toPoint(), globalPos, event->modifiers()); 1030 1041 QApplication::sendEvent(receiver, &contextMenuEvent); 1031 1042 … … 1498 1509 contained in this proxy. 1499 1510 1500 This function makes it possible to a quire proxies for1511 This function makes it possible to acquire proxies for 1501 1512 non top-level widgets. For instance, you can embed a dialog, 1502 1513 and then transform only one of its widgets.
Note:
See TracChangeset
for help on using the changeset viewer.