QScintilla/Editor.py

changeset 536
6d8d39753c82
parent 535
4b00d7336e19
child 537
72b32daeb8d6
--- a/QScintilla/Editor.py	Mon Aug 30 19:03:34 2010 +0200
+++ b/QScintilla/Editor.py	Mon Aug 30 20:16:34 2010 +0200
@@ -16,7 +16,7 @@
 from PyQt4.QtGui import *
 
 from E5Gui.E5Application import e5App
-from E5Gui import E5FileDialog
+from E5Gui import E5FileDialog, E5MessageBox
 
 from . import Exporters
 from . import Lexers
@@ -3431,7 +3431,7 @@
         elif acs == QsciScintilla.AcsAll:
             self.autoCompleteFromAll()
         else:
-            QMessageBox.information(None,
+            E5MessageBox.information(self,
                 self.trUtf8("Autocompletion"),
                 self.trUtf8("""Autocompletion is not available because"""
                     """ there is no autocompletion source set."""))
@@ -4210,11 +4210,11 @@
                     self.coverageMarkersShown.emit(True)
                     self.__coverageMarkersShown = True
             else:
-                QMessageBox.information(None,
+                E5MessageBox.information(self,
                     self.trUtf8("Show Code Coverage Annotations"),
                     self.trUtf8("""All lines have been covered."""))
         else:
-            QMessageBox.warning(None,
+            QMessageBox.warning(self,
                 self.trUtf8("Show Code Coverage Annotations"),
                 self.trUtf8("""There is no coverage file available."""))
         
@@ -5022,7 +5022,7 @@
                     if not QFileInfo(fname).isDir():
                         self.vm.openSourceFile(fname)
                     else:
-                        QMessageBox.information(None,
+                        E5MessageBox.information(self,
                             self.trUtf8("Drop Error"),
                             self.trUtf8("""<p><b>{0}</b> is not a file.</p>""")
                                 .format(fname))
@@ -5758,4 +5758,4 @@
                command = self.__receivedWhileSyncing.pop(0) 
                self.__dispatchCommand(command)
             
-            self.__isSyncing = False
+            self.__isSyncing = False
\ No newline at end of file

eric ide

mercurial