summaryrefslogtreecommitdiff
path: root/src/dialogs/qquickabstractfiledialog.cpp
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-03-03 14:06:39 +0100
committerRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-03-18 09:20:40 +0000
commitbb95b8e3eb464d26ab3e78b49c8276277c929470 (patch)
treead9f5343e35089a2ad7fdb7e4f693a41958ccbb7 /src/dialogs/qquickabstractfiledialog.cpp
parentcbd066616b0b24fb8003323b467a3269b7edb602 (diff)
downloadqtquickcontrols-bb95b8e3eb464d26ab3e78b49c8276277c929470.tar.gz
Dialogs: override selectedUrls in QQPlatformfiledialog
Rather than checking if a dialog helper is in use in QAbstractFileDialog, we override selectedUrls in QQuickPlatformFileDialog. Otherwise the version in QQuickFileDialog will be called first, which tries to return selectedUrls from the QML version (which might not be in use). Change-Id: If61647078ed2dd535384dcea67767bfc729edfe0 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/dialogs/qquickabstractfiledialog.cpp')
-rw-r--r--src/dialogs/qquickabstractfiledialog.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/dialogs/qquickabstractfiledialog.cpp b/src/dialogs/qquickabstractfiledialog.cpp
index 9e1e605e..233a2db7 100644
--- a/src/dialogs/qquickabstractfiledialog.cpp
+++ b/src/dialogs/qquickabstractfiledialog.cpp
@@ -194,13 +194,6 @@ QUrl QQuickAbstractFileDialog::fileUrl() const
return (urls.count() == 1) ? urls[0] : QUrl();
}
-QList<QUrl> QQuickAbstractFileDialog::fileUrls() const
-{
- if (m_dlgHelper)
- return m_dlgHelper->selectedFiles();
- return QList<QUrl>();
-}
-
void QQuickAbstractFileDialog::updateModes()
{
// The 4 possible modes are AnyFile, ExistingFile, Directory, ExistingFiles