Changed the obsoleted use of QDirModel to QFileSystemModel. 5_3_x

Thu, 25 Jul 2013 19:08:05 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 25 Jul 2013 19:08:05 +0200
branch
5_3_x
changeset 2823
5a9325e00b48
parent 2818
add8426ea430
child 2825
323d417d256b

Changed the obsoleted use of QDirModel to QFileSystemModel.
(grafted from 449de130268ed2a6bdc77676f849a12faff4fff5)

E5Gui/E5Completers.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5Completers.py	Wed Jul 24 18:59:34 2013 +0200
+++ b/E5Gui/E5Completers.py	Thu Jul 25 19:08:05 2013 +0200
@@ -8,7 +8,7 @@
 """
 
 from PyQt4.QtCore import QDir, Qt
-from PyQt4.QtGui import QCompleter, QDirModel, QStringListModel
+from PyQt4.QtGui import QCompleter, QFileSystemModel, QStringListModel
 
 from Globals import isWindowsPlatform
 
@@ -29,7 +29,7 @@
         @keyparam showHidden flag indicating to show hidden entries as well (boolean)
         """
         super().__init__(parent)
-        self.__model = QDirModel(self)
+        self.__model = QFileSystemModel(self)
         if showHidden:
             self.__model.setFilter(
                 QDir.Filters(QDir.Dirs | QDir.Files | QDir.Drives | \
@@ -61,7 +61,7 @@
         @keyparam showHidden flag indicating to show hidden entries as well (boolean)
         """
         super().__init__(parent)
-        self.__model = QDirModel(self)
+        self.__model = QFileSystemModel(self)
         if showHidden:
             self.__model.setFilter(
                 QDir.Filters(QDir.Drives | QDir.AllDirs | QDir.Hidden))

eric ide

mercurial