diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qml/qmlruntime.cpp | 4 |
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 |