summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-04-29 06:52:54 +0200
committerMontel Laurent <[email protected]>2016-04-29 06:52:54 +0200
commit39855d7250b20d3382f85fd465ee3bbd89ccbce8 (patch)
tree60442df5978976158bfdf6413ea6e1d7c722ff92
parentd1225b0b46f9a4ae00b4838a651e69dd9220edc4 (diff)
Fix compile
-rw-r--r--messageviewer/src/viewer/webengine/mailwebengineview.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/messageviewer/src/viewer/webengine/mailwebengineview.cpp b/messageviewer/src/viewer/webengine/mailwebengineview.cpp
index 0df653d..0c1566f 100644
--- a/messageviewer/src/viewer/webengine/mailwebengineview.cpp
+++ b/messageviewer/src/viewer/webengine/mailwebengineview.cpp
@@ -304,13 +304,7 @@ bool MailWebEngineView::isAttachmentInjectionPoint(const QPoint &globalPos) cons
void MailWebEngineView::scrollToRelativePosition(qreal pos)
{
-#if QT_VERSION >= 0x050700
- const QPointF currentPos = page()->scrollPosition();
- const QPointF newPos(currentPos.x(), pos);
- page()->setScrollPosition(newPos);
-#else
page()->runJavaScript(WebEngineViewer::WebEngineScript::scrollToRelativePosition(pos));
-#endif
}
qreal MailWebEngineView::relativePosition() const