QScintilla/QsciScintillaCompat.py

changeset 2077
68a34718a0ce
parent 1518
e6e21910210d
child 2084
d3f083dd0222
diff -r 0d6286344ac1 -r 68a34718a0ce QScintilla/QsciScintillaCompat.py
--- a/QScintilla/QsciScintillaCompat.py	Sat Sep 29 19:59:18 2012 +0200
+++ b/QScintilla/QsciScintillaCompat.py	Sun Sep 30 13:27:28 2012 +0200
@@ -8,14 +8,16 @@
 """
 
 from PyQt4.QtCore import Qt
-from PyQt4.QtGui import QApplication, QPalette, QColor
+from PyQt4.QtGui import QPalette, QColor
 from PyQt4.Qsci import QsciScintilla, \
     QSCINTILLA_VERSION as QsciQSCINTILLA_VERSION, QSCINTILLA_VERSION_STR, \
     QsciScintillaBase
 
+from E5Gui.E5Application import E5Application
 
 ###############################################################################
 
+
 def QSCINTILLA_VERSION():
     """
     Module function to return the QScintilla version.
@@ -78,7 +80,7 @@
         """
         Public method to set the styles according the selected Qt style.
         """
-        palette = QApplication.palette()
+        palette = E5Application.palette()
         self.SendScintilla(QsciScintilla.SCI_STYLESETFORE,
             QsciScintilla.STYLE_DEFAULT, palette.color(QPalette.Text))
         self.SendScintilla(QsciScintilla.SCI_STYLESETBACK,

eric ide

mercurial