QScintilla/Editor.py

changeset 2084
d3f083dd0222
parent 2077
68a34718a0ce
child 2162
4627e6ea7b6b
--- a/QScintilla/Editor.py	Mon Oct 01 19:43:54 2012 +0200
+++ b/QScintilla/Editor.py	Mon Oct 01 19:44:40 2012 +0200
@@ -16,7 +16,7 @@
     QDialog, QAbstractPrintDialog, QInputDialog, QApplication, QMenu, QPalette, QFont
 from PyQt4.Qsci import QsciScintilla, QsciMacro, QsciStyledText
 
-from E5Gui.E5Application import e5App, E5Application
+from E5Gui.E5Application import e5App
 from E5Gui import E5FileDialog, E5MessageBox
 
 from . import Exporters
@@ -3681,7 +3681,7 @@
                 Preferences.getEditorColour("SelectionBackground"))
         else:
             self.setSelectionBackgroundColor(
-                E5Application.palette().color(QPalette.Highlight))
+                QApplication.palette().color(QPalette.Highlight))
         if Preferences.getEditor("ColourizeSelText"):
             self.resetSelectionForegroundColor()
         elif Preferences.getEditor("CustomSelectionColours"):
@@ -3689,7 +3689,7 @@
                 Preferences.getEditorColour("SelectionForeground"))
         else:
             self.setSelectionForegroundColor(
-                E5Application.palette().color(QPalette.HighlightedText))
+                QApplication.palette().color(QPalette.HighlightedText))
         self.setSelectionToEol(Preferences.getEditor("ExtendSelectionToEol"))
         self.setCaretForegroundColor(
             Preferences.getEditorColour("CaretForeground"))

eric ide

mercurial