QScintilla/QsciScintillaCompat.py

changeset 2084
d3f083dd0222
parent 2077
68a34718a0ce
child 2302
f29e9405c851
--- a/QScintilla/QsciScintillaCompat.py	Mon Oct 01 19:43:54 2012 +0200
+++ b/QScintilla/QsciScintillaCompat.py	Mon Oct 01 19:44:40 2012 +0200
@@ -8,13 +8,11 @@
 """
 
 from PyQt4.QtCore import Qt
-from PyQt4.QtGui import QPalette, QColor
+from PyQt4.QtGui import QPalette, QColor, QApplication
 from PyQt4.Qsci import QsciScintilla, \
     QSCINTILLA_VERSION as QsciQSCINTILLA_VERSION, QSCINTILLA_VERSION_STR, \
     QsciScintillaBase
 
-from E5Gui.E5Application import E5Application
-
 ###############################################################################
 
 
@@ -80,7 +78,7 @@
         """
         Public method to set the styles according the selected Qt style.
         """
-        palette = E5Application.palette()
+        palette = QApplication.palette()
         self.SendScintilla(QsciScintilla.SCI_STYLESETFORE,
             QsciScintilla.STYLE_DEFAULT, palette.color(QPalette.Text))
         self.SendScintilla(QsciScintilla.SCI_STYLESETBACK,

eric ide

mercurial