summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-02-21 10:45:31 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2020-02-21 13:47:44 +0000
commit21ab7e59d732b87fe470b91be12f8cc124b7b38d (patch)
treedab8916ed2cb01256f701314a6c40a038d870f9b /src
parent8d71943cfa065384cb178580e59708eaab6144b4 (diff)
downloadqt-creator-21ab7e59d732b87fe470b91be12f8cc124b7b38d.tar.gz
AdvandedDockingSystem: Fix deprecation warnings
Change-Id: I21193c2b275f9c11d25eef11bdbe2931ad2ea4ff Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/libs/advanceddockingsystem/dockmanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/advanceddockingsystem/dockmanager.cpp b/src/libs/advanceddockingsystem/dockmanager.cpp
index 5ff2c9291e..4e1554dff2 100644
--- a/src/libs/advanceddockingsystem/dockmanager.cpp
+++ b/src/libs/advanceddockingsystem/dockmanager.cpp
@@ -46,6 +46,7 @@
#include "workspacedialog.h"
+#include <utils/algorithm.h>
#include <utils/qtcassert.h>
#include <algorithm>
@@ -613,7 +614,7 @@ namespace ADS
QStringList DockManager::workspaces()
{
if (d->m_workspaces.isEmpty() || d->m_workspaceListDirty) {
- auto tmp = QSet<QString>::fromList(d->m_workspaces);
+ auto tmp = Utils::toSet(d->m_workspaces);
QTC_ASSERT(d->m_settings, return {});
QDir workspaceDir(QFileInfo(d->m_settings->fileName()).path() + QLatin1Char('/')
@@ -632,7 +633,7 @@ namespace ADS
//d->m_workspaces.prepend(QLatin1String(Constants::DEFAULT_NAME));
d->m_workspaceListDirty = false;
- d->m_workspaces = tmp.toList();
+ d->m_workspaces = Utils::toList(tmp);
}
return d->m_workspaces;
}