Fixed an issue in the editor and minieditor caused by using an obsolete method. 6_0_x

Thu, 29 Jan 2015 19:57:19 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 29 Jan 2015 19:57:19 +0100
branch
6_0_x
changeset 4075
f8757a7414b3
parent 4071
fb7a5fa9f239
child 4088
d2be880ee3a2

Fixed an issue in the editor and minieditor caused by using an obsolete method.
(grafted from 95c24977f68f8e05ebae5cf49906953be65ac568)

QScintilla/Editor.py file | annotate | diff | comparison | revisions
QScintilla/MiniEditor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Wed Jan 28 19:38:57 2015 +0100
+++ b/QScintilla/Editor.py	Thu Jan 29 19:57:19 2015 +0100
@@ -2395,7 +2395,7 @@
         sb = e5App().getObject("UserInterface").statusBar()
         printDialog = QPrintDialog(printer, self)
         if self.hasSelectedText():
-            printDialog.addEnabledOption(QAbstractPrintDialog.PrintSelection)
+            printDialog.setOption(QAbstractPrintDialog.PrintSelection, True)
         if printDialog.exec_() == QDialog.Accepted:
             sb.showMessage(self.tr('Printing...'))
             QApplication.processEvents()
--- a/QScintilla/MiniEditor.py	Wed Jan 28 19:38:57 2015 +0100
+++ b/QScintilla/MiniEditor.py	Thu Jan 29 19:57:19 2015 +0100
@@ -2523,7 +2523,7 @@
         sb = self.statusBar()
         printDialog = QPrintDialog(printer, self)
         if self.__textEdit.hasSelectedText():
-            printDialog.addEnabledOption(QAbstractPrintDialog.PrintSelection)
+            printDialog.setOption(QAbstractPrintDialog.PrintSelection, True)
         if printDialog.exec_() == QDialog.Accepted:
             sb.showMessage(self.tr('Printing...'))
             QApplication.processEvents()

eric ide

mercurial