diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-07-09 12:50:00 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-11 14:52:17 +0200 |
commit | cf2b5a7722e2d919f57f7094124dbcf52ae79b68 (patch) | |
tree | 41ebeb2ffce5176a5fcda0aae3fe679ffd6e64f2 /src/gui/kernel/qguiapplication_p.h | |
parent | 9de46b2b9387e813e3194765652699aa6ad4d158 (diff) |
Clear qt_button_down widget when starting a drag.
Prevent pickMouseReceiver() from using the
widget from which the drag was started.
Task-number: QTBUG-26145
Change-Id: I65d4c295a894193e41c676fb9fd1f7113c2631b5
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Diffstat (limited to 'src/gui/kernel/qguiapplication_p.h')
-rw-r--r-- | src/gui/kernel/qguiapplication_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/kernel/qguiapplication_p.h b/src/gui/kernel/qguiapplication_p.h index 857dc5390e..58a82a9cc5 100644 --- a/src/gui/kernel/qguiapplication_p.h +++ b/src/gui/kernel/qguiapplication_p.h @@ -62,6 +62,9 @@ class QPlatformIntegration; class QPlatformTheme; class QPlatformDragQtResponse; struct QDrawHelperGammaTables; +#ifndef QT_NO_DRAGANDDROP +class QDrag; +#endif // QT_NO_DRAGANDDROP class Q_GUI_EXPORT QGuiApplicationPrivate : public QCoreApplicationPrivate { @@ -240,8 +243,13 @@ public: protected: virtual void notifyThemeChanged(); +#ifndef QT_NO_DRAGANDDROP + virtual void notifyDragStarted(const QDrag *); +#endif // QT_NO_DRAGANDDROP private: + friend class QDragManager; + void init(); static QGuiApplicationPrivate *self; |