Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Konqueror
Commits
425283cd
Commit
425283cd
authored
Oct 13, 2020
by
Jonathan Marten
Browse files
QWebEnginePage::setLifecycleState() is not available before Qt 5.14
parent
d15fd1ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/webarchiver/thumbnailer/webarchivecreator.cpp
View file @
425283cd
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment