Fix compile warning

This commit is contained in:
Montel Laurent 2011-07-08 22:06:29 +02:00
parent 9188aeab5a
commit addf0945a1
2 changed files with 3 additions and 3 deletions

View File

@ -86,10 +86,10 @@ private:
QDeclarativeComponent* m_delegate; QDeclarativeComponent* m_delegate;
QDeclarativeItem* m_source; QDeclarativeItem* m_source;
QDeclarativeItem* m_target; QDeclarativeItem* m_target;
DeclarativeMimeData* const m_data;
bool m_enabled; bool m_enabled;
Qt::DropActions m_supportedActions; Qt::DropActions m_supportedActions;
Qt::DropAction m_defaultAction; Qt::DropAction m_defaultAction;
DeclarativeMimeData* const m_data;
}; };
#endif // DECLARATIVEDRAGAREA_H #endif // DECLARATIVEDRAGAREA_H

View File

@ -25,12 +25,12 @@
DeclarativeDragDropEvent::DeclarativeDragDropEvent(QGraphicsSceneDragDropEvent* e, QObject* parent) : DeclarativeDragDropEvent::DeclarativeDragDropEvent(QGraphicsSceneDragDropEvent* e, QObject* parent) :
QObject(parent), QObject(parent),
m_event(e),
m_x(e->pos().x()), m_x(e->pos().x()),
m_y(e->pos().y()), m_y(e->pos().y()),
m_buttons(e->buttons()), m_buttons(e->buttons()),
m_modifiers(e->modifiers()), m_modifiers(e->modifiers()),
m_data(e->mimeData()) m_data(e->mimeData()),
m_event(e)
{ {
} }