Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Network
Konqueror
Commits
425283cd
Commit
425283cd
authored
Oct 13, 2020
by
Jonathan Marten
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QWebEnginePage::setLifecycleState() is not available before Qt 5.14
parent
d15fd1ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
plugins/webarchiver/thumbnailer/webarchivecreator.cpp
plugins/webarchiver/thumbnailer/webarchivecreator.cpp
+3
-0
No files found.
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