Helpviewer/UrlBar/UrlBar.py

changeset 2084
d3f083dd0222
parent 2080
4b33165dd55b
child 2302
f29e9405c851
--- a/Helpviewer/UrlBar/UrlBar.py	Mon Oct 01 19:43:54 2012 +0200
+++ b/Helpviewer/UrlBar/UrlBar.py	Mon Oct 01 19:44:40 2012 +0200
@@ -8,7 +8,7 @@
 """
 
 from PyQt4.QtCore import pyqtSlot, Qt, QPointF, QUrl, QDateTime, qVersion
-from PyQt4.QtGui import QColor, QPalette, QLinearGradient, QIcon, QDialog
+from PyQt4.QtGui import QColor, QPalette, QLinearGradient, QIcon, QDialog, QApplication
 try:
     from PyQt4.QtNetwork import QSslCertificate     # __IGNORE_EXCEPTION__
 except ImportError:
@@ -17,7 +17,6 @@
 
 from E5Gui.E5LineEdit import E5LineEdit
 from E5Gui.E5LineEditButton import E5LineEditButton
-from E5Gui.E5Application import E5Application
 
 import Helpviewer.HelpWindow
 
@@ -278,8 +277,8 @@
             backgroundColor = QColor(220, 220, 220)     # light gray
             foregroundColor = Qt.black
         else:
-            backgroundColor = E5Application.palette().color(QPalette.Base)
-            foregroundColor = E5Application.palette().color(QPalette.Text)
+            backgroundColor = QApplication.palette().color(QPalette.Base)
+            foregroundColor = QApplication.palette().color(QPalette.Text)
         
         if self.__browser is not None:
             p = self.palette()
@@ -300,7 +299,7 @@
                             backgroundColor = Preferences.getHelp("SaveUrlColor")
                     else:
                         backgroundColor = Preferences.getHelp("SaveUrlColor")
-                highlight = E5Application.palette().color(QPalette.Highlight)
+                highlight = QApplication.palette().color(QPalette.Highlight)
                 r = (highlight.red() + 2 * backgroundColor.red()) // 3
                 g = (highlight.green() + 2 * backgroundColor.green()) // 3
                 b = (highlight.blue() + 2 * backgroundColor.blue()) // 3

eric ide

mercurial