diff options
author | hjk <hjk@qt.io> | 2021-08-09 14:03:54 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-08-10 08:24:21 +0000 |
commit | 2a20778937d705c4bce9c44156c25a26882d0c84 (patch) | |
tree | badd42980a10c13b754cabe4c7e722c1832a745c /src/plugins/resourceeditor | |
parent | 34b7ef6bb38e3bf14ef2897a5e7940d82fe2a5f6 (diff) | |
download | qt-creator-2a20778937d705c4bce9c44156c25a26882d0c84.tar.gz |
ProjectExplorer: Use more FilePaths in ProjectNodes
... and related classes.
Change-Id: I50844a0b60e4b0769727b17d5b3d544cd6d10f0d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor')
-rw-r--r-- | src/plugins/resourceeditor/resourcenode.cpp | 6 | ||||
-rw-r--r-- | src/plugins/resourceeditor/resourcenode.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/resourceeditor/resourcenode.cpp b/src/plugins/resourceeditor/resourcenode.cpp index e2d051960f..3a6f7993ab 100644 --- a/src/plugins/resourceeditor/resourcenode.cpp +++ b/src/plugins/resourceeditor/resourcenode.cpp @@ -119,7 +119,7 @@ static int getPriorityFromContextNode(const ProjectExplorer::Node *resourceNode, return -1; } -static bool hasPriority(const QStringList &files) +static bool hasPriority(const FilePaths &files) { if (files.isEmpty()) return false; @@ -446,7 +446,7 @@ bool ResourceTopLevelNode::removeNonExistingFiles() return true; } -FolderNode::AddNewInformation ResourceTopLevelNode::addNewInformation(const QStringList &files, Node *context) const +FolderNode::AddNewInformation ResourceTopLevelNode::addNewInformation(const FilePaths &files, Node *context) const { QString name = QCoreApplication::translate("ResourceTopLevelNode", "%1 Prefix: %2") .arg(filePath().fileName()) @@ -587,7 +587,7 @@ bool ResourceFolderNode::renamePrefix(const QString &prefix, const QString &lang return true; } -FolderNode::AddNewInformation ResourceFolderNode::addNewInformation(const QStringList &files, Node *context) const +FolderNode::AddNewInformation ResourceFolderNode::addNewInformation(const FilePaths &files, Node *context) const { QString name = QCoreApplication::translate("ResourceTopLevelNode", "%1 Prefix: %2") .arg(m_topLevelNode->filePath().fileName()) diff --git a/src/plugins/resourceeditor/resourcenode.h b/src/plugins/resourceeditor/resourcenode.h index 3a140d46b2..a992e267dc 100644 --- a/src/plugins/resourceeditor/resourcenode.h +++ b/src/plugins/resourceeditor/resourcenode.h @@ -49,7 +49,7 @@ public: bool addPrefix(const QString &prefix, const QString &lang); bool removePrefix(const QString &prefix, const QString &lang); - AddNewInformation addNewInformation(const QStringList &files, Node *context) const override; + AddNewInformation addNewInformation(const Utils::FilePaths &files, Node *context) const override; bool showInSimpleTree() const override; bool removeNonExistingFiles(); @@ -78,7 +78,7 @@ public: bool renamePrefix(const QString &prefix, const QString &lang); - AddNewInformation addNewInformation(const QStringList &files, Node *context) const override; + AddNewInformation addNewInformation(const Utils::FilePaths &files, Node *context) const override; QString prefix() const; QString lang() const; |