Project/ProjectResourcesBrowser.py

changeset 882
34b86be88bf0
parent 880
52ed20236a1c
child 945
8cd4d08fa9f6
child 950
1138e347c653
--- a/Project/ProjectResourcesBrowser.py	Sat Feb 05 19:55:33 2011 +0100
+++ b/Project/ProjectResourcesBrowser.py	Sun Feb 06 15:41:44 2011 +0100
@@ -13,7 +13,7 @@
 from PyQt4.QtGui import *
 
 from E5Gui.E5Application import e5App
-from E5Gui import E5MessageBox
+from E5Gui import E5MessageBox, E5FileDialog
 
 from .ProjectBrowserModel import ProjectBrowserFileItem, \
     ProjectBrowserSimpleDirectoryItem, ProjectBrowserDirectoryItem, \
@@ -386,14 +386,13 @@
         if self.hooks["newResource"] is not None:
             self.hooks["newResource"](path)
         else:
-            fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter(
+            fname, selectedFilter = E5FileDialog.getSaveFileNameAndFilter(
                 self,
                 self.trUtf8("New Resource"),
                 path,
                 self.trUtf8("Qt Resource Files (*.qrc)"),
                 "",
-                QFileDialog.Options(QFileDialog.DontConfirmOverwrite |
-                                    QFileDialog.DontUseNativeDialog))
+                E5FileDialog.Options(E5FileDialog.DontConfirmOverwrite))
             
             if not fname:
                 # user aborted or didn't enter a filename

eric ide

mercurial