QScintilla/Terminal.py

changeset 2077
68a34718a0ce
parent 1965
96f5a76e1845
child 2084
d3f083dd0222
diff -r 0d6286344ac1 -r 68a34718a0ce QScintilla/Terminal.py
--- a/QScintilla/Terminal.py	Sat Sep 29 19:59:18 2012 +0200
+++ b/QScintilla/Terminal.py	Sun Sep 30 13:27:28 2012 +0200
@@ -17,7 +17,7 @@
     QWidget, QHBoxLayout, QShortcut
 from PyQt4.Qsci import QsciScintilla
 
-from E5Gui.E5Application import e5App
+from E5Gui.E5Application import e5App, E5Application
 
 from . import Lexers
 from .QsciScintillaCompat import QsciScintillaCompat
@@ -379,7 +379,7 @@
                 Preferences.getEditorColour("SelectionBackground"))
         else:
             self.setSelectionBackgroundColor(
-                QApplication.palette().color(QPalette.Highlight))
+                E5Application.palette().color(QPalette.Highlight))
         if Preferences.getEditor("ColourizeSelText"):
             self.resetSelectionForegroundColor()
         elif Preferences.getEditor("CustomSelectionColours"):
@@ -387,7 +387,7 @@
                 Preferences.getEditorColour("SelectionForeground"))
         else:
             self.setSelectionForegroundColor(
-                QApplication.palette().color(QPalette.HighlightedText))
+                E5Application.palette().color(QPalette.HighlightedText))
         self.setSelectionToEol(Preferences.getEditor("ExtendSelectionToEol"))
         self.setCaretForegroundColor(
             Preferences.getEditorColour("CaretForeground"))

eric ide

mercurial