Project/ProjectResourcesBrowser.py

branch
Py2 comp.
changeset 3080
6c0a430b19df
parent 3065
070b35dde35e
parent 3071
83d066710d60
child 3145
a9de05d4a22f
diff -r 0233bbe9a9c4 -r 6c0a430b19df Project/ProjectResourcesBrowser.py
--- a/Project/ProjectResourcesBrowser.py	Wed Nov 13 23:30:59 2013 +0100
+++ b/Project/ProjectResourcesBrowser.py	Sat Nov 16 10:06:28 2013 +0100
@@ -16,10 +16,11 @@
 import os
 
 from PyQt4.QtCore import QThread, QFileInfo, pyqtSignal, PYQT_VERSION, QProcess
-from PyQt4.QtGui import QDialog, QApplication, QMenu, QProgressDialog
+from PyQt4.QtGui import QDialog, QApplication, QMenu
 
 from E5Gui.E5Application import e5App
 from E5Gui import E5MessageBox, E5FileDialog
+from E5Gui.E5ProgressDialog import E5ProgressDialog
 
 from .ProjectBrowserModel import ProjectBrowserFileItem, \
     ProjectBrowserSimpleDirectoryItem, ProjectBrowserDirectoryItem, \
@@ -724,9 +725,10 @@
             self.hooks["compileAllResources"](self.project.pdata["RESOURCES"])
         else:
             numResources = len(self.project.pdata["RESOURCES"])
-            progress = QProgressDialog(
+            progress = E5ProgressDialog(
                 self.trUtf8("Compiling resources..."),
-                self.trUtf8("Abort"), 0, numResources, self)
+                self.trUtf8("Abort"), 0, numResources,
+                self.trUtf8("%v/%m Resources"), self)
             progress.setModal(True)
             progress.setMinimumDuration(0)
             i = 0
@@ -759,9 +761,10 @@
             self.hooks["compileSelectedResources"](files)
         else:
             numResources = len(files)
-            progress = QProgressDialog(
+            progress = E5ProgressDialog(
                 self.trUtf8("Compiling resources..."),
-                self.trUtf8("Abort"), 0, numResources, self)
+                self.trUtf8("Abort"), 0, numResources,
+                self.trUtf8("%v/%m Resources"), self)
             progress.setModal(True)
             progress.setMinimumDuration(0)
             i = 0
@@ -828,9 +831,9 @@
             self.hooks["compileChangedResources"](
                 self.project.pdata["RESOURCES"])
         else:
-            progress = QProgressDialog(
+            progress = E5ProgressDialog(
                 self.trUtf8("Determining changed resources..."),
-                None, 0, 100)
+                None, 0, 100, self.trUtf8("%v/%m Resources"))
             progress.setMinimumDuration(0)
             i = 0
             

eric ide

mercurial