From 9f27bfb31acfba49a74a342d9249f24633a7ade2 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Fri, 13 Apr 2018 09:01:43 +0200 Subject: Make sure we can build with -no-feature-draganddrop We move QInternalMimeData to a separate file, because this class is used, even if draganddrop is disabled. From now on, include qinternalmimedata_p.h instead of qdnd_p.h for QInternalMimeData. Change-Id: I594e08e2e90d574dc445119091686b4b69e4731b Reviewed-by: Gatis Paeglis --- examples/network/torrent/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/network/torrent/mainwindow.cpp') diff --git a/examples/network/torrent/mainwindow.cpp b/examples/network/torrent/mainwindow.cpp index f80c2c6975..660472c05c 100644 --- a/examples/network/torrent/mainwindow.cpp +++ b/examples/network/torrent/mainwindow.cpp @@ -62,7 +62,7 @@ class TorrentView : public QTreeWidget public: TorrentView(QWidget *parent = 0); -#ifndef QT_NO_DRAGANDDROP +#if QT_CONFIG(draganddrop) signals: void fileDropped(const QString &fileName); @@ -702,12 +702,12 @@ void MainWindow::closeEvent(QCloseEvent *) TorrentView::TorrentView(QWidget *parent) : QTreeWidget(parent) { -#ifndef QT_NO_DRAGANDDROP +#if QT_CONFIG(draganddrop) setAcceptDrops(true); #endif } -#ifndef QT_NO_DRAGANDDROP +#if QT_CONFIG(draganddrop) void TorrentView::dragMoveEvent(QDragMoveEvent *event) { // Accept file actions with a '.torrent' extension. -- cgit v1.2.3