Foldernavigationwidget: Use QFileSystemModel instead of QDirModel.

hoping for better performance. On this occasion, add context menu
containing "Open" and "Choose folder" enabling drive changes on
Windows. Purge remains of QDirModel elsewhere.
Task-number: QTCREATORBUG-62
This commit is contained in:
Friedemann Kleint
2010-01-26 10:33:39 +01:00
parent bf8c0b8a22
commit 001602c2a4
3 changed files with 182 additions and 78 deletions

View File

@@ -36,12 +36,9 @@
QT_BEGIN_NAMESPACE
class QDir;
class QDirModel;
class QFileInfo;
class QListView;
class QModelIndex;
class QStringList;
class QTreeView;
QT_END_NAMESPACE
namespace Utils {
@@ -65,15 +62,7 @@ public:
QString projectName() const;
private:
int m_secondPageId;
Utils::FileWizardPage *m_firstPage;
QTreeView *m_dirView;
QDirModel *m_dirModel;
QListView *m_filesView;
QDirModel *m_filesModel;
};
class QmlProjectWizard : public Core::BaseFileWizard