diff --git a/openlp/core/display/canvas.py b/openlp/core/display/canvas.py index a6f5de386..75d45932b 100644 --- a/openlp/core/display/canvas.py +++ b/openlp/core/display/canvas.py @@ -34,7 +34,7 @@ import json import logging import os -from PyQt5 import QtCore, QtWidgets, QtWebKit, QtWebKitWidgets, QtGui, QtMultimedia, QtWebChannel, QtWebEngineWidgets +from PyQt5 import QtCore, QtWidgets, QtGui, QtMultimedia, QtWebChannel, QtWebEngineWidgets from openlp.core.common import AppLocation, Registry, RegistryProperties, OpenLPMixin, Settings, translate,\ is_macosx, is_win diff --git a/openlp/core/lib/htmlbuilder.py b/openlp/core/lib/htmlbuilder.py index df88f5f91..e17e5fdf2 100644 --- a/openlp/core/lib/htmlbuilder.py +++ b/openlp/core/lib/htmlbuilder.py @@ -409,7 +409,7 @@ is the function which has to be called from outside. The generated and returned import logging from string import Template -from PyQt5 import QtWebKit +from PyQt5 import QtWebEgine from openlp.core.common import Settings from openlp.core.lib.theme import BackgroundType, BackgroundGradientType, VerticalType, HorizontalType diff --git a/openlp/core/ui/media/webkitplayer.py b/openlp/core/ui/media/webkitplayer.py index 571f21e48..562d69f70 100644 --- a/openlp/core/ui/media/webkitplayer.py +++ b/openlp/core/ui/media/webkitplayer.py @@ -24,7 +24,7 @@ The :mod:`~openlp.core.ui.media.webkit` module contains our WebKit video player """ import logging -from PyQt5 import QtGui, QtWebKitWidgets +from PyQt5 import QtGui, QtWebEngineWidgets from openlp.core.common import Settings from openlp.core.lib import translate @@ -157,7 +157,7 @@ class WebkitPlayer(MediaPlayer): :return: boolean. True if available """ - web = QtWebKitWidgets.QWebPage() + web = QtWebEngineWidgets.QWebPage() # This script should return '[object HTMLVideoElement]' if the html5 video is available in webkit. Otherwise it # should return '[object HTMLUnknownElement]' return web.mainFrame().evaluateJavaScript(