aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickdialogs2/quickdialogs2quickimpl/qquickfiledialogdelegate.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-11-24 14:57:40 +0100
committerMitch Curtis <mitch.curtis@qt.io>2022-01-05 16:59:15 +0100
commit13399bd54d084ed837ec061ca9315dbd173f3b48 (patch)
tree5a6435f072df4889463ae266fc1e98384b66a5e8 /src/quickdialogs2/quickdialogs2quickimpl/qquickfiledialogdelegate.cpp
parentc1938ddbb45c75593c8a21aaec2420f8f2c7b3d8 (diff)
Replace currentFile(s) with selectedFile(s)
selectedFile can represent the currently-selected file (if the platform supports it), and so we can free up "currentFolder" for FolderDialog now that it means the folder that is being displayed, rather than the folder that is currently selected. [ChangeLog][QtQuickDialogs] FileDialog's currentFile and currentFiles properties have been deprecated. The selectedFile and selectedFiles properties now refer to the currently selected file(s), as well as the final selection. Fixes: QTBUG-98562 Task-number: QTBUG-87798 Pick-to: 6.3 Change-Id: Ic66481332338f21169a9f63617cf4db4be83265d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/quickdialogs2/quickdialogs2quickimpl/qquickfiledialogdelegate.cpp')
-rw-r--r--src/quickdialogs2/quickdialogs2quickimpl/qquickfiledialogdelegate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickdialogs2/quickdialogs2quickimpl/qquickfiledialogdelegate.cpp b/src/quickdialogs2/quickdialogs2quickimpl/qquickfiledialogdelegate.cpp
index d212b6c7f6..30ce27fd56 100644
--- a/src/quickdialogs2/quickdialogs2quickimpl/qquickfiledialogdelegate.cpp
+++ b/src/quickdialogs2/quickdialogs2quickimpl/qquickfiledialogdelegate.cpp
@@ -84,7 +84,7 @@ void QQuickFileDialogDelegatePrivate::highlightFile()
if (converted) {
attached->view()->setCurrentIndex(index);
if (fileDialog)
- fileDialog->setCurrentFile(file);
+ fileDialog->setSelectedFile(file);
else if (folderDialog)
folderDialog->setSelectedFolder(file);
}