Commit 39855d72 authored by Laurent Montel's avatar Laurent Montel 😁

Fix compile

parent d1225b0b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment