Commit 425283cd authored by Jonathan Marten's avatar Jonathan Marten
Browse files

QWebEnginePage::setLifecycleState() is not available before Qt 5.14

parent d15fd1ca
......@@ -273,7 +273,10 @@ bool WebArchiveCreator::create(const QString &path, int width, int height, QImag
#ifdef THUMBNAIL_USE_WEBKIT
page->setVisibilityState(QWebPage::VisibilityStateHidden);
#else // THUMBNAIL_USE_WEBKIT
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
page->setLifecycleState(QWebEnginePage::LifecycleState::Discarded);
#endif // QT_VERSION
#endif // THUMBNAIL_USE_WEBKIT
img = pix.toImage(); // return the rendered thumbnail
......
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