summaryrefslogtreecommitdiff
path: root/src/dialogs/qquickabstractfiledialog.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-12-16 16:19:20 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-11 13:29:28 +0100
commit77a6b6448200c263a862bc34546106a6b0e698a6 (patch)
treecb3c6da821934dded9810a55db63e0c146a17a64 /src/dialogs/qquickabstractfiledialog.cpp
parenta5da0d56dbad39259e20b17de340c3dd757e74ae (diff)
downloadqtquickcontrols-77a6b6448200c263a862bc34546106a6b0e698a6.tar.gz
FileDialog: new features in DefaultFileDialog.qml
Use a ComboBox for the filters. Add a sidebar showing shortcuts for the common paths and drives that the user will most likely need, and an editable list of favorite paths. [ChangeLog][QtQuickDialogs][FileDialog] The FileDialog fallback QML implementation now uses QtQuick.Controls, and has added features including a Combobox for file extension filters, and a sidebar with common paths, drives/volumes and favorite paths. Change-Id: I228ebdadcf338917db81a2b3d03d3c0b09584e7d Reviewed-by: Liang Qi <liang.qi@digia.com>
Diffstat (limited to 'src/dialogs/qquickabstractfiledialog.cpp')
-rw-r--r--src/dialogs/qquickabstractfiledialog.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/dialogs/qquickabstractfiledialog.cpp b/src/dialogs/qquickabstractfiledialog.cpp
index 50be9f2c..e193ca37 100644
--- a/src/dialogs/qquickabstractfiledialog.cpp
+++ b/src/dialogs/qquickabstractfiledialog.cpp
@@ -79,24 +79,6 @@ QString QQuickAbstractFileDialog::title() const
return m_options->windowTitle();
}
-QStringList QQuickAbstractFileDialog::shortcuts() const
-{
- QStringList ret;
- ret << QStandardPaths::standardLocations(QStandardPaths::DesktopLocation);
- ret << QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation);
- ret << QStandardPaths::standardLocations(QStandardPaths::MusicLocation);
- ret << QStandardPaths::standardLocations(QStandardPaths::MoviesLocation);
- ret << QStandardPaths::standardLocations(QStandardPaths::PicturesLocation);
- ret << QStandardPaths::standardLocations(QStandardPaths::HomeLocation);
- ret << QStandardPaths::writableLocation(QStandardPaths::TempLocation);
- ret << QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation);
-
- QFileInfoList drives = QDir::drives();
- foreach (QFileInfo fi, drives)
- ret << fi.absoluteFilePath();
- return ret;
-}
-
void QQuickAbstractFileDialog::setTitle(const QString &t)
{
if (m_options->windowTitle() == t) return;