From addf0945a1d067e0cc52bf0687b7bd6fab2f2392 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Fri, 8 Jul 2011 22:06:29 +0200 Subject: [PATCH] Fix compile warning --- declarativeimports/draganddrop/DeclarativeDragArea.h | 2 +- declarativeimports/draganddrop/DeclarativeDragDropEvent.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/declarativeimports/draganddrop/DeclarativeDragArea.h b/declarativeimports/draganddrop/DeclarativeDragArea.h index e81b3b07d..f2f638c14 100644 --- a/declarativeimports/draganddrop/DeclarativeDragArea.h +++ b/declarativeimports/draganddrop/DeclarativeDragArea.h @@ -86,10 +86,10 @@ private: QDeclarativeComponent* m_delegate; QDeclarativeItem* m_source; QDeclarativeItem* m_target; - DeclarativeMimeData* const m_data; bool m_enabled; Qt::DropActions m_supportedActions; Qt::DropAction m_defaultAction; + DeclarativeMimeData* const m_data; }; #endif // DECLARATIVEDRAGAREA_H diff --git a/declarativeimports/draganddrop/DeclarativeDragDropEvent.cpp b/declarativeimports/draganddrop/DeclarativeDragDropEvent.cpp index cd5fed70b..765386259 100644 --- a/declarativeimports/draganddrop/DeclarativeDragDropEvent.cpp +++ b/declarativeimports/draganddrop/DeclarativeDragDropEvent.cpp @@ -25,12 +25,12 @@ DeclarativeDragDropEvent::DeclarativeDragDropEvent(QGraphicsSceneDragDropEvent* e, QObject* parent) : QObject(parent), - m_event(e), m_x(e->pos().x()), m_y(e->pos().y()), m_buttons(e->buttons()), m_modifiers(e->modifiers()), - m_data(e->mimeData()) + m_data(e->mimeData()), + m_event(e) { }