Project/SpellingPropertiesDialog.py

changeset 882
34b86be88bf0
parent 880
52ed20236a1c
child 945
8cd4d08fa9f6
child 1510
e75ecf2bd9dd
diff -r ff23d907f87b -r 34b86be88bf0 Project/SpellingPropertiesDialog.py
--- a/Project/SpellingPropertiesDialog.py	Sat Feb 05 19:55:33 2011 +0100
+++ b/Project/SpellingPropertiesDialog.py	Sun Feb 06 15:41:44 2011 +0100
@@ -13,6 +13,7 @@
 from PyQt4.QtGui import *
 
 from E5Gui.E5Completers import E5FileCompleter
+from E5Gui import E5FileDialog
 
 from QScintilla.SpellChecker import SpellChecker
 
@@ -71,12 +72,11 @@
         pwl = self.pwlEdit.text()
         if not pwl:
             pwl = self.project.ppath
-        file = QFileDialog.getOpenFileName(
+        file = E5FileDialog.getOpenFileName(
             self,
             self.trUtf8("Select project word list"),
             pwl,
-            self.trUtf8("Dictionary File (*.dic);;All Files (*)"), 
-            QFileDialog.DontUseNativeDialog)
+            self.trUtf8("Dictionary File (*.dic);;All Files (*)"))
         
         if file:
             self.pwlEdit.setText(Utilities.toNativeSeparators(file))
@@ -89,12 +89,11 @@
         pel = self.pelEdit.text()
         if not pel:
             pel = self.project.ppath
-        file = QFileDialog.getOpenFileName(
+        file = E5FileDialog.getOpenFileName(
             self,
             self.trUtf8("Select project exclude list"),
             pel,
-            self.trUtf8("Dictionary File (*.dic);;All Files (*)"), 
-            QFileDialog.DontUseNativeDialog)
+            self.trUtf8("Dictionary File (*.dic);;All Files (*)"))
             
         if file:
             self.pelEdit.setText(Utilities.toNativeSeparators(file))

eric ide

mercurial