summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-28 19:46:18 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-28 19:46:18 (GMT)
commit4faf450d323d9ae43a4cba9bcf70bdb0056bd5c4 (patch)
tree5b1e11af3727d2d724bd80fb4263a209194e566a
parent9579bfa4d19552ed9904b209bd954c929bb26372 (diff)
Forward event
-rw-r--r--webengineviewer/src/webengineview.cpp14
-rw-r--r--webengineviewer/src/webengineview.h2
2 files changed, 11 insertions, 5 deletions
diff --git a/webengineviewer/src/webengineview.cpp b/webengineviewer/src/webengineview.cpp
index 103cf97..610978a 100644
--- a/webengineviewer/src/webengineview.cpp
+++ b/webengineviewer/src/webengineview.cpp
@@ -105,20 +105,26 @@ void WebEngineView::forwardMouseReleaseEvent(QMouseEvent *event)
void WebEngineView::dragMoveEvent(QDragMoveEvent *e)
{
- Q_UNUSED(e);
qDebug() << " void WebEngineView::dragMoveEvent(QDragMoveEvent *e)";
+ QWebEngineView::dragMoveEvent(e);
}
-void WebEngineView::dragEnterEvent(QDragEnterEvent *event)
+void WebEngineView::dragEnterEvent(QDragEnterEvent *e)
{
- Q_UNUSED(event);
qDebug() << " void WebEngineView::dragEnterEvent(QDragEnterEvent *event)";
+ QWebEngineView::dragEnterEvent(e);
}
void WebEngineView::dropEvent(QDropEvent *e)
{
- Q_UNUSED(e);
qDebug() << " WebEngineView::dropEvent ";
+ QWebEngineView::dropEvent(e);
+}
+
+void WebEngineView::dragLeaveEvent(QDragLeaveEvent *e)
+{
+ qDebug() << " WebEngineView::dragLeaveEvent ";
+ QWebEngineView::dragLeaveEvent(e);
}
bool WebEngineView::eventFilter(QObject *obj, QEvent *event)
diff --git a/webengineviewer/src/webengineview.h b/webengineviewer/src/webengineview.h
index a8bb947..db34b7f 100644
--- a/webengineviewer/src/webengineview.h
+++ b/webengineviewer/src/webengineview.h
@@ -55,7 +55,7 @@ protected:
void dragMoveEvent(QDragMoveEvent *e) Q_DECL_OVERRIDE;
void dragEnterEvent(QDragEnterEvent *event) Q_DECL_OVERRIDE;
void dropEvent(QDropEvent *e) Q_DECL_OVERRIDE;
-
+ void dragLeaveEvent(QDragLeaveEvent *e) Q_DECL_OVERRIDE;
private:
WebEngineViewPrivate *const d;
};