Skip to content

Commit

Permalink
canvas: Fix check for QWebEngineView availability
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Oct 27, 2016
1 parent a761a39 commit e9e0330
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Orange/canvas/application/canvasmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@
Qt, QEvent, QSize, QUrl, QTimer, QFile, QByteArray, QSettings, QT_VERSION
)

if QT_VERSION < 0x50500:
try:
from AnyQt.QtWebEngineWidgets import QWebEngineView
USE_WEB_ENGINE = True
except ImportError:
from AnyQt.QtWebKitWidgets import QWebView
from AnyQt.QtNetwork import QNetworkDiskCache
USE_WEB_ENGINE = False
else:
from PyQt5.QtWebEngineWidgets import QWebEngineView
USE_WEB_ENGINE = True


from AnyQt.QtCore import pyqtProperty as Property

Expand Down

0 comments on commit e9e0330

Please sign in to comment.