Thu, 29 Jan 2015 19:57:19 +0100
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()