Removed code from the feature permission widgets of the new web browser because Qt .7 still doesn't support that.

Wed, 13 Jul 2016 11:02:28 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 13 Jul 2016 11:02:28 +0200
changeset 5034
203039d7e945
parent 5033
d1c2651060ec
child 5035
cd2a891703d3

Removed code from the feature permission widgets of the new web browser because Qt .7 still doesn't support that.

WebBrowser/FeaturePermissions/FeaturePermissionBar.py file | annotate | diff | comparison | revisions
WebBrowser/FeaturePermissions/FeaturePermissionManager.py file | annotate | diff | comparison | revisions
WebBrowser/FeaturePermissions/FeaturePermissionsDialog.py file | annotate | diff | comparison | revisions
--- a/WebBrowser/FeaturePermissions/FeaturePermissionBar.py	Wed Jul 13 09:44:59 2016 +0200
+++ b/WebBrowser/FeaturePermissions/FeaturePermissionBar.py	Wed Jul 13 11:02:28 2016 +0200
@@ -45,9 +45,6 @@
         self.__manager = manager
         
         self.__permissionFeatureTexts = {
-            # TODO: Qt 5.7?
-##            QWebEnginePage.Notifications:
-##                self.tr("{0} wants to use desktop notifications."),
             QWebEnginePage.Geolocation:
                 self.tr("{0} wants to use your position."),
             QWebEnginePage.MediaAudioCapture:
@@ -60,8 +57,6 @@
                 self.tr("{0} wants to lock your mouse."),
         }
         self.__permissionFeatureIconNames = {
-            # TODO: Qt 5.7?
-##            QWebEnginePage.Notifications: "notification.png",
             QWebEnginePage.Geolocation: "geolocation.png",
             QWebEnginePage.MediaAudioCapture: "audiocapture.png",
             QWebEnginePage.MediaVideoCapture: "camera.png",
--- a/WebBrowser/FeaturePermissions/FeaturePermissionManager.py	Wed Jul 13 09:44:59 2016 +0200
+++ b/WebBrowser/FeaturePermissions/FeaturePermissionManager.py	Wed Jul 13 11:02:28 2016 +0200
@@ -33,11 +33,6 @@
         super(FeaturePermissionManager, self).__init__(parent)
         
         self.__featurePermissions = {
-            # TODO: Qt 5.7?
-##            QWebEnginePage.Notifications: {
-##                QWebEnginePage.PermissionGrantedByUser: [],
-##                QWebEnginePage.PermissionDeniedByUser: [],
-##            },
             QWebEnginePage.Geolocation: {
                 QWebEnginePage.PermissionGrantedByUser: [],
                 QWebEnginePage.PermissionDeniedByUser: [],
@@ -60,13 +55,6 @@
             },
         }
         self.__featurePermissionsKeys = {
-            # TODO: Qt 5.7?
-##            (QWebEnginePage.Notifications,
-##             QWebEnginePage.PermissionGrantedByUser):
-##            "NotificationsGranted",
-##            (QWebEnginePage.Notifications,
-##             QWebEnginePage.PermissionDeniedByUser):
-##            "NotificationsDenied",
             (QWebEnginePage.Geolocation,
              QWebEnginePage.PermissionGrantedByUser):
             "GeolocationGranted",
--- a/WebBrowser/FeaturePermissions/FeaturePermissionsDialog.py	Wed Jul 13 09:44:59 2016 +0200
+++ b/WebBrowser/FeaturePermissions/FeaturePermissionsDialog.py	Wed Jul 13 11:02:28 2016 +0200
@@ -37,21 +37,6 @@
         self.setupUi(self)
         
         # add the various lists
-        # TODO: Qt 5.7?
-##        self.notifList = QTreeWidget()
-##        self.notifList.setAlternatingRowColors(True)
-##        self.notifList.setSelectionMode(QAbstractItemView.ExtendedSelection)
-##        self.notifList.setRootIsDecorated(False)
-##        self.notifList.setItemsExpandable(False)
-##        self.notifList.setAllColumnsShowFocus(True)
-##        self.notifList.setObjectName("notifList")
-##        self.notifList.setSortingEnabled(True)
-##        self.notifList.headerItem().setText(0, self.tr("Host"))
-##        self.notifList.headerItem().setText(1, self.tr("Permission"))
-##        self.tabWidget.addTab(
-##            self.notifList,
-##            UI.PixmapCache.getIcon("notification.png"),
-##            self.tr("Notifications"))
         
         self.geoList = QTreeWidget()
         self.geoList.setAlternatingRowColors(True)
@@ -129,9 +114,6 @@
             UI.PixmapCache.getIcon("mouse.png"),
             self.tr("Mouse Lock"))
         
-        # TODO: Qt 5.7?
-##        self.setTabOrder(self.tabWidget, self.notifList)
-##        self.setTabOrder(self.notifList, self.geoList)
         self.setTabOrder(self.tabWidget, self.geoList)
         self.setTabOrder(self.geoList, self.micList)
         self.setTabOrder(self.micList, self.camList)
@@ -146,8 +128,6 @@
         }
         
         self.__permissionsLists = {
-            # TODO: Qt 5.7?
-##            QWebEnginePage.Notifications: self.notifList,
             QWebEnginePage.Geolocation: self.geoList,
             QWebEnginePage.MediaAudioCapture: self.micList,
             QWebEnginePage.MediaVideoCapture: self.camList,

eric ide

mercurial