summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/qtresourceview.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-05-30 14:57:11 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-05-30 22:54:35 +0200
commit7086f38d74262b6b303cdae22ede5921ba6c2f48 (patch)
treec646c713b651ade5865badbc3505d666e676d5ee /src/designer/src/lib/shared/qtresourceview.cpp
parentbf0e106f00a590c9b5030b940da2603b2cffe214 (diff)
Qt Designer: Fix clazy/Axivion warnings about QMap with pointer keys
Pick-to: 6.5 Change-Id: Ia9a955893870ff1e83bba597932a65569ebfa450 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/designer/src/lib/shared/qtresourceview.cpp')
-rw-r--r--src/designer/src/lib/shared/qtresourceview.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/designer/src/lib/shared/qtresourceview.cpp b/src/designer/src/lib/shared/qtresourceview.cpp
index ef4d8a509..ab586c2a5 100644
--- a/src/designer/src/lib/shared/qtresourceview.cpp
+++ b/src/designer/src/lib/shared/qtresourceview.cpp
@@ -32,6 +32,7 @@
#include <QtCore/qmimedata.h>
#include <QtCore/qfileinfo.h>
#include <QtCore/qdir.h>
+#include <QtCore/qhash.h>
#include <QtCore/qqueue.h>
#include <QtXml/qdom.h>
@@ -137,13 +138,13 @@ public:
QTreeWidget *m_treeWidget;
QListWidget *m_listWidget;
QSplitter *m_splitter = nullptr;
- QMap<QString, QStringList> m_pathToContents; // full path to contents file names (full path to its resource filenames)
- QMap<QString, QString> m_pathToParentPath; // full path to full parent path
- QMap<QString, QStringList> m_pathToSubPaths; // full path to full sub paths
+ QMap<QString, QStringList> m_pathToContents; // full path to contents file names (full path to its resource filenames)
+ QMap<QString, QString> m_pathToParentPath; // full path to full parent path
+ QMap<QString, QStringList> m_pathToSubPaths; // full path to full sub paths
QMap<QString, QTreeWidgetItem *> m_pathToItem;
- QMap<QTreeWidgetItem *, QString> m_itemToPath;
+ QHash<QTreeWidgetItem *, QString> m_itemToPath;
QMap<QString, QListWidgetItem *> m_resourceToItem;
- QMap<QListWidgetItem *, QString> m_itemToResource;
+ QHash<QListWidgetItem *, QString> m_itemToResource;
QAction *m_editResourcesAction = nullptr;
QAction *m_reloadResourcesAction = nullptr;
QAction *m_copyResourcePathAction = nullptr;