Added a compatibilitiy fix for QScintilla 2.5. 5_1_x

Sat, 09 Apr 2011 10:12:46 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 09 Apr 2011 10:12:46 +0200
branch
5_1_x
changeset 972
841220c4dde2
parent 970
bacccfe28261
child 973
27f8621a3e9f

Added a compatibilitiy fix for QScintilla 2.5.

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Tue Apr 05 18:27:45 2011 +0200
+++ b/QScintilla/Editor.py	Sat Apr 09 10:12:46 2011 +0200
@@ -3497,8 +3497,12 @@
             Preferences.getEditor("AutoCompletionCaseSensitivity"))
         self.setAutoCompletionReplaceWord(
             Preferences.getEditor("AutoCompletionReplaceWord"))
-        self.setAutoCompletionShowSingle(
-        Preferences.getEditor("AutoCompletionShowSingle"))
+        try:
+            self.setAutoCompletionUseSingle(
+                Preferences.getEditor("AutoCompletionShowSingle"))
+        except AttributeError:
+            self.setAutoCompletionShowSingle(
+                Preferences.getEditor("AutoCompletionShowSingle"))
         autoCompletionSource = Preferences.getEditor("AutoCompletionSource")
         if autoCompletionSource == QsciScintilla.AcsDocument:
             self.setAutoCompletionSource(QsciScintilla.AcsDocument)

eric ide

mercurial