QScintilla/Shell.py

changeset 2084
d3f083dd0222
parent 2077
68a34718a0ce
child 2302
f29e9405c851
--- a/QScintilla/Shell.py	Mon Oct 01 19:43:54 2012 +0200
+++ b/QScintilla/Shell.py	Mon Oct 01 19:44:40 2012 +0200
@@ -15,7 +15,7 @@
     QPalette, QFont, QWidget, QHBoxLayout, QVBoxLayout, QShortcut
 from PyQt4.Qsci import QsciScintilla
 
-from E5Gui.E5Application import e5App, E5Application
+from E5Gui.E5Application import e5App
 from E5Gui import E5MessageBox
 
 from . import Lexers
@@ -377,7 +377,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"):
@@ -385,7 +385,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