QScintilla/MiniEditor.py

changeset 2084
d3f083dd0222
parent 2077
68a34718a0ce
child 2101
5bac7dee9e1a
diff -r 3005ae4463aa -r d3f083dd0222 QScintilla/MiniEditor.py
--- a/QScintilla/MiniEditor.py	Mon Oct 01 19:43:54 2012 +0200
+++ b/QScintilla/MiniEditor.py	Mon Oct 01 19:44:40 2012 +0200
@@ -19,7 +19,6 @@
 
 from E5Gui.E5Action import E5Action, createActionGroup
 from E5Gui import E5MessageBox, E5FileDialog
-from E5Gui.E5Application import E5Application
 
 from . import Lexers
 from .QsciScintillaCompat import QsciScintillaCompat
@@ -2166,7 +2165,7 @@
                 Preferences.getEditorColour("SelectionBackground"))
         else:
             self.__textEdit.setSelectionBackgroundColor(
-                E5Application.palette().color(QPalette.Highlight))
+                QApplication.palette().color(QPalette.Highlight))
         if Preferences.getEditor("ColourizeSelText"):
             self.__textEdit.resetSelectionForegroundColor()
         elif Preferences.getEditor("CustomSelectionColours"):
@@ -2174,7 +2173,7 @@
                 Preferences.getEditorColour("SelectionForeground"))
         else:
             self.__textEdit.setSelectionForegroundColor(
-                E5Application.palette().color(QPalette.HighlightedText))
+                QApplication.palette().color(QPalette.HighlightedText))
         self.__textEdit.setSelectionToEol(Preferences.getEditor("ExtendSelectionToEol"))
         self.__textEdit.setCaretForegroundColor(
             Preferences.getEditorColour("CaretForeground"))

eric ide

mercurial