summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@nokia.com>2012-06-20 10:35:03 +0900
committerQt by Nokia <qt-info@nokia.com>2012-06-28 11:54:06 +0200
commit53feaa1c7f4d946a437d034defade9a10b46b67d (patch)
tree306c198b70c1bb309f9ee8a0e4f9ea4af757425c /tools
parent0fb690bc5665610710eaf677bd1b2486527810bc (diff)
Make qtquick1 compile with QT_NO_DRAGANDDROP
Change-Id: Ic7790b074a138371e28f1be487c2d05c98242134 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Jeremy Katz <jeremy.katz@nokia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qml/qmlruntime.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/qml/qmlruntime.cpp b/tools/qml/qmlruntime.cpp
index 0aaeb066..b3a4a68a 100644
--- a/tools/qml/qmlruntime.cpp
+++ b/tools/qml/qmlruntime.cpp
@@ -108,9 +108,12 @@ public:
DragAndDropView(QDeclarativeViewer *parent = 0)
: QDeclarativeView(parent)
{
+#ifndef QT_NO_DRAGANDDROP
setAcceptDrops(true);
+#endif
}
+#ifndef QT_NO_DRAGANDDROP
void dragEnterEvent(QDragEnterEvent *event)
{
const QMimeData *mimeData = event->mimeData();
@@ -142,6 +145,7 @@ public:
}
}
}
+#endif // QT_NO_DRAGANDDROP
};
class Runtime : public QObject