summaryrefslogtreecommitdiff
path: root/src/dialogs/qquickabstractfiledialog_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2015-03-18 12:59:28 +0100
committerShawn Rutledge <shawn.rutledge@digia.com>2015-03-18 15:13:43 +0000
commit32e297a03fc9823b894a7d1c0c11b082abc662b0 (patch)
tree316c187e0a40ce35e86f704d53f9e2e7ea248e5d /src/dialogs/qquickabstractfiledialog_p.h
parentc9e558a64833a7f74e9c0423c35a73ed5229f112 (diff)
downloadqtquickcontrols-32e297a03fc9823b894a7d1c0c11b082abc662b0.tar.gz
FileDialog: make the save/load distinction function properly
- shortcuts need to be different: use QStandardPaths::writableLocation if it's a "save" dialog - that means shortcuts need to change dynamically, because the same dialog instance can be reused for both purposes - DefaultFileDialog.qml changes its button labels accordingly Change-Id: Ie90d96cc686caf30e86669a79e613585f8fb3704 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
Diffstat (limited to 'src/dialogs/qquickabstractfiledialog_p.h')
-rw-r--r--src/dialogs/qquickabstractfiledialog_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dialogs/qquickabstractfiledialog_p.h b/src/dialogs/qquickabstractfiledialog_p.h
index c7320fd1..9275c1da 100644
--- a/src/dialogs/qquickabstractfiledialog_p.h
+++ b/src/dialogs/qquickabstractfiledialog_p.h
@@ -108,7 +108,7 @@ Q_SIGNALS:
void sidebarVisibleChanged();
protected:
- void updateModes();
+ virtual void updateModes();
protected:
QPlatformFileDialogHelper *m_dlgHelper;