aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/basefilefind.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-06-21 08:40:47 +0200
committerhjk <hjk@qt.io>2019-07-02 12:48:54 +0000
commit36fcd5213667d04008c39c38f9d8787dc6b839fd (patch)
treeaa9c23a7b50221cbda6c3f1aad34fe0ed013e84f /src/plugins/texteditor/basefilefind.cpp
parenta6d5da5af2d62e6f4d32ee4fb84e969b8bad0cd9 (diff)
Utils: Add toSet/toList functions
As replacement for functionality that's being deprecated in Qt but still useful or needed, or that cannot easily be handled without resorting to #if QT_VERSION checks in user code. Change-Id: Id3575a54ff944bf0e89d452d13944fcaee270208 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/texteditor/basefilefind.cpp')
-rw-r--r--src/plugins/texteditor/basefilefind.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/basefilefind.cpp b/src/plugins/texteditor/basefilefind.cpp
index f6c134e02c..b3feef13f0 100644
--- a/src/plugins/texteditor/basefilefind.cpp
+++ b/src/plugins/texteditor/basefilefind.cpp
@@ -507,7 +507,7 @@ QStringList BaseFileFind::replaceAll(const QString &text,
// Query the user for permissions
if (!roFiles.isEmpty()) {
- ReadOnlyFilesDialog roDialog(roFiles.toList(), ICore::mainWindow());
+ ReadOnlyFilesDialog roDialog(Utils::toList(roFiles), ICore::mainWindow());
roDialog.setShowFailWarning(true, tr("Aborting replace."));
if (roDialog.exec() == ReadOnlyFilesDialog::RO_Cancel)
return QStringList();