summaryrefslogtreecommitdiffstats
path: root/src/core/web_contents_adapter.h
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2018-04-13 10:10:03 +0200
committerKai Koehne <kai.koehne@qt.io>2018-04-17 15:20:44 +0000
commit7566b23f7d4df9898369a9608b000c0364221177 (patch)
treee4b4435a3c955c682e7da69014b4b3539d198ab1 /src/core/web_contents_adapter.h
parent780e8c985b384e7a3b4986075fcb88d50d6fe266 (diff)
Make sure we can build with -no-feature-draganddrop
Change-Id: Ib6763a8a3e1ac1ac98caef39f7e6e75c18344424 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/web_contents_adapter.h')
-rw-r--r--src/core/web_contents_adapter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter.h b/src/core/web_contents_adapter.h
index f42dea394..111100bba 100644
--- a/src/core/web_contents_adapter.h
+++ b/src/core/web_contents_adapter.h
@@ -42,6 +42,7 @@
#include "qtwebenginecoreglobal.h"
#include "web_contents_adapter_client.h"
+#include <QtGui/qtgui-config.h>
#include <QtWebEngineCore/qwebenginehttprequest.h>
#include <QScopedPointer>
@@ -181,6 +182,7 @@ public:
QPointF lastScrollOffset() const;
QSizeF lastContentsSize() const;
+#if QT_CONFIG(draganddrop)
void startDragging(QObject *dragSource, const content::DropData &dropData,
Qt::DropActions allowedActions, const QPixmap &pixmap, const QPoint &offset);
void enterDrag(QDragEnterEvent *e, const QPointF &screenPos);
@@ -188,6 +190,7 @@ public:
void updateDragAction(int action);
void endDragging(const QPointF &clientPos, const QPointF &screenPos);
void leaveDrag();
+#endif // QT_CONFIG(draganddrop)
void printToPDF(const QPageLayout&, const QString&);
quint64 printToPDFCallbackResult(const QPageLayout &,
bool colorMode = true,