Project/ProjectFormsBrowser.py

changeset 536
6d8d39753c82
parent 501
5c615a85241a
child 537
72b32daeb8d6
--- a/Project/ProjectFormsBrowser.py	Mon Aug 30 19:03:34 2010 +0200
+++ b/Project/ProjectFormsBrowser.py	Mon Aug 30 20:16:34 2010 +0200
@@ -15,6 +15,7 @@
 from PyQt4.QtGui import *
 
 from E5Gui.E5Application import e5App
+from E5Gui import E5MessageBox
 
 from .ProjectBrowserModel import ProjectBrowserFileItem, \
     ProjectBrowserSimpleDirectoryItem, ProjectBrowserDirectoryItem, \
@@ -616,19 +617,19 @@
                 if self.compiledFile not in self.project.pdata["SOURCES"]:
                     self.project.appendFile(ofn)
                 if not self.noDialog:
-                    QMessageBox.information(None,
+                    E5MessageBox.information(self,
                         self.trUtf8("Form Compilation"),
                         self.trUtf8("The compilation of the form file"
                             " was successful."))
             except IOError as msg:
                 if not self.noDialog:
-                    QMessageBox.information(None,
+                    E5MessageBox.information(self,
                         self.trUtf8("Form Compilation"),
                         self.trUtf8("<p>The compilation of the form file failed.</p>"
                             "<p>Reason: {0}</p>").format(str(msg)))
         else:
             if not self.noDialog:
-                QMessageBox.information(None,
+                E5MessageBox.information(self,
                     self.trUtf8("Form Compilation"),
                     self.trUtf8("The compilation of the form file failed."))
         self.compileProc = None
@@ -902,4 +903,4 @@
             "compileSelectedForms"  : None, 
             "generateDialogCode"    : None, 
             "newForm"               : None, 
-        }
+        }
\ No newline at end of file

eric ide

mercurial