summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/quick/quicktesttreeitem.h
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2021-05-26 15:50:03 +0200
committerChristian Stenger <christian.stenger@qt.io>2021-05-27 12:24:05 +0000
commit5525f2b11290d83facc601e21673e7fa76cd5696 (patch)
treeb96d80603ecb6910008b89d8e0c5e5f2f65720c2 /src/plugins/autotest/quick/quicktesttreeitem.h
parente8286088b164a33ab471dd8fdd298973f76c311c (diff)
downloadqt-creator-5525f2b11290d83facc601e21673e7fa76cd5696.tar.gz
AutoTest: Use Utils::FilePath for files and directories
Still some missing bits as some QString members had different meanings depending on their context. Change-Id: Ib48eab54498974a26bbd5123cbffeefee5f7e79c Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/autotest/quick/quicktesttreeitem.h')
-rw-r--r--src/plugins/autotest/quick/quicktesttreeitem.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/autotest/quick/quicktesttreeitem.h b/src/plugins/autotest/quick/quicktesttreeitem.h
index 5397d01f77..f9977b1bec 100644
--- a/src/plugins/autotest/quick/quicktesttreeitem.h
+++ b/src/plugins/autotest/quick/quicktesttreeitem.h
@@ -35,7 +35,7 @@ class QuickTestTreeItem : public TestTreeItem
public:
explicit QuickTestTreeItem(ITestFramework *testFramework,
const QString &name = QString(),
- const QString &filePath = QString(),
+ const Utils::FilePath &filePath = Utils::FilePath(),
Type type = Root)
: TestTreeItem(testFramework, name, filePath, type)
{}
@@ -59,11 +59,11 @@ public:
bool removeOnSweepIfEmpty() const override;
TestTreeItem *createParentGroupNode() const override;
bool isGroupable() const override;
- void markForRemovalRecursively(const QString &filePath) override;
+ void markForRemovalRecursively(const Utils::FilePath &filePath) override;
private:
- TestTreeItem *findChildByFileNameAndType(const QString &filePath, const QString &name,
+ TestTreeItem *findChildByFileNameAndType(const Utils::FilePath &filePath, const QString &name,
Type tType);
- TestTreeItem *findChildByNameFileAndLine(const QString &name, const QString &filePath,
+ TestTreeItem *findChildByNameFileAndLine(const QString &name, const Utils::FilePath &filePath,
int line);
TestTreeItem *unnamedQuickTests() const;
};