QScintilla/MiniEditor.py

changeset 2077
68a34718a0ce
parent 1566
0cb791cc631a
child 2084
d3f083dd0222
--- a/QScintilla/MiniEditor.py	Sat Sep 29 19:59:18 2012 +0200
+++ b/QScintilla/MiniEditor.py	Sun Sep 30 13:27:28 2012 +0200
@@ -19,6 +19,7 @@
 
 from E5Gui.E5Action import E5Action, createActionGroup
 from E5Gui import E5MessageBox, E5FileDialog
+from E5Gui.E5Application import E5Application
 
 from . import Lexers
 from .QsciScintillaCompat import QsciScintillaCompat
@@ -2165,7 +2166,7 @@
                 Preferences.getEditorColour("SelectionBackground"))
         else:
             self.__textEdit.setSelectionBackgroundColor(
-                QApplication.palette().color(QPalette.Highlight))
+                E5Application.palette().color(QPalette.Highlight))
         if Preferences.getEditor("ColourizeSelText"):
             self.__textEdit.resetSelectionForegroundColor()
         elif Preferences.getEditor("CustomSelectionColours"):
@@ -2173,7 +2174,7 @@
                 Preferences.getEditorColour("SelectionForeground"))
         else:
             self.__textEdit.setSelectionForegroundColor(
-                QApplication.palette().color(QPalette.HighlightedText))
+                E5Application.palette().color(QPalette.HighlightedText))
         self.__textEdit.setSelectionToEol(Preferences.getEditor("ExtendSelectionToEol"))
         self.__textEdit.setCaretForegroundColor(
             Preferences.getEditorColour("CaretForeground"))

eric ide

mercurial