eric6/QScintilla/Editor.py

changeset 7759
51aa6c6b66f7
parent 7749
285855999b4e
child 7771
787a6b3f8c9f
--- a/eric6/QScintilla/Editor.py	Mon Oct 05 19:51:55 2020 +0200
+++ b/eric6/QScintilla/Editor.py	Tue Oct 06 17:52:44 2020 +0200
@@ -2464,7 +2464,7 @@
                     (self.fileName, ln),
                     (cond, temp, enabled, ignorecount),
                     self.condHistory, self, modal=True)
-                if dlg.exec_() == QDialog.Accepted:
+                if dlg.exec() == QDialog.Accepted:
                     cond, temp, enabled, ignorecount = dlg.getData()
                     self.breakpointModel.setBreakPointByIndex(
                         index, self.fileName, ln,
@@ -2657,7 +2657,7 @@
         printDialog = QPrintDialog(printer, self)
         if self.hasSelectedText():
             printDialog.setOption(QAbstractPrintDialog.PrintSelection, True)
-        if printDialog.exec_() == QDialog.Accepted:
+        if printDialog.exec() == QDialog.Accepted:
             sb.showMessage(self.tr('Printing...'))
             QApplication.processEvents()
             fn = self.getFileName()
@@ -2698,7 +2698,7 @@
             printer.setDocName(self.noName)
         preview = QPrintPreviewDialog(printer, self)
         preview.paintRequested.connect(self.__printPreview)
-        preview.exec_()
+        preview.exec()
     
     def __printPreview(self, printer):
         """
@@ -7420,7 +7420,7 @@
         """
         from Project.AddLanguageDialog import AddLanguageDialog
         dlg = AddLanguageDialog(self)
-        if dlg.exec_() == QDialog.Accepted:
+        if dlg.exec() == QDialog.Accepted:
             lang = dlg.getSelectedLanguage()
             line, index = self.getCursorPosition()
             self.insert('<qresource lang="{0}">\n</qresource>\n'.format(lang))
@@ -7790,7 +7790,7 @@
             cline, cindex = self.getCursorPosition()
             from .SpellCheckingDialog import SpellCheckingDialog
             dlg = SpellCheckingDialog(self.spell, 0, self.length(), self)
-            dlg.exec_()
+            dlg.exec()
             self.setCursorPosition(cline, cindex)
             if Preferences.getEditor("AutoSpellCheckingEnabled"):
                 self.spell.checkDocumentIncrementally()
@@ -7804,7 +7804,7 @@
         startPos = self.positionFromLineIndex(sline, sindex)
         endPos = self.positionFromLineIndex(eline, eindex)
         dlg = SpellCheckingDialog(self.spell, startPos, endPos, self)
-        dlg.exec_()
+        dlg.exec()
     
     def __checkSpellingWord(self):
         """
@@ -7816,7 +7816,7 @@
         wordStartPos = self.positionFromLineIndex(line, wordStart)
         wordEndPos = self.positionFromLineIndex(line, wordEnd)
         dlg = SpellCheckingDialog(self.spell, wordStartPos, wordEndPos, self)
-        dlg.exec_()
+        dlg.exec()
     
     def __showContextMenuSpelling(self):
         """
@@ -8231,7 +8231,7 @@
         
         from .SortOptionsDialog import SortOptionsDialog
         dlg = SortOptionsDialog()
-        if dlg.exec_() == QDialog.Accepted:
+        if dlg.exec() == QDialog.Accepted:
             ascending, alnum, caseSensitive = dlg.getData()
             origStartLine, origStartIndex, origEndLine, origEndIndex = (
                 self.getRectangularSelection()

eric ide

mercurial