Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 0714843f authored by Laurent Montel's avatar Laurent Montel 😁

Remove QT_CHECK

parent 098dbed5
......@@ -17,8 +17,6 @@
Boston, MA 02110-1301, USA.
*/
#include "webenginescript.h"
#include <QDebug>
#include <QtWebEngine/QtWebEngineVersion>
using namespace WebEngineViewer;
QString WebEngineScript::findAllImages()
......@@ -127,11 +125,7 @@ QString WebEngineScript::searchElementPosition(const QString &elementStr)
static QString scrollTop()
{
#if QTWEBENGINE_VERSION >= QT_VERSION_CHECK(5, 10, 0)
return QStringLiteral("document.documentElement.scrollTop");
#else
return QStringLiteral("document.body.scrollTop");
#endif
}
QString WebEngineScript::scrollPercentage(int percent)
......
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