m_object->d_func()->target = 0;
+ QGuiApplicationPrivate::instance()->notifyDragStarted(o);
const Qt::DropAction result = m_platformDrag->drag(m_object);
m_object = 0;
return result;
}
}
+#ifndef QT_NO_DRAGANDDROP
+void QGuiApplicationPrivate::notifyDragStarted(const QDrag *drag)
+{
+ Q_UNUSED(drag)
+
+}
+#endif
+
const QDrawHelperGammaTables *QGuiApplicationPrivate::gammaTables()
{
QDrawHelperGammaTables *result = m_gammaTables.load();
class QPlatformTheme;
class QPlatformDragQtResponse;
struct QDrawHelperGammaTables;
+#ifndef QT_NO_DRAGANDDROP
+class QDrag;
+#endif // QT_NO_DRAGANDDROP
class Q_GUI_EXPORT QGuiApplicationPrivate : public QCoreApplicationPrivate
{
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;
initSystemPalette();
}
+#ifndef QT_NO_DRAGANDDROP
+void QApplicationPrivate::notifyDragStarted(const QDrag *drag)
+{
+ // Prevent pickMouseReceiver() from using the widget where the drag was started after a drag operation.
+ QGuiApplicationPrivate::notifyDragStarted(drag);
+ qt_button_down = 0;
+}
+#endif // QT_NO_DRAGANDDROP
+
#ifndef QT_NO_GESTURES
QGestureManager* QGestureManager::instance()
{
protected:
void notifyThemeChanged();
+#ifndef QT_NO_DRAGANDDROP
+ void notifyDragStarted(const QDrag *);
+#endif // QT_NO_DRAGANDDROP
public:
static QFont *sys_font;