summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/quick/quicktestparser.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2021-06-16 16:06:34 +0200
committerChristian Stenger <christian.stenger@qt.io>2021-06-17 08:30:48 +0000
commit354a0b17abef403d698b0f81e567dc31a1fe6f5a (patch)
tree59f64cc065d6463b53952a7c34e2d69f6c7cdd35 /src/plugins/autotest/quick/quicktestparser.cpp
parent5482109c0587eca171b9b302543d23d51eab4b06 (diff)
downloadqt-creator-354a0b17abef403d698b0f81e567dc31a1fe6f5a.tar.gz
AutoTest: More filepathification
Change-Id: Ibb76f4332fa2e682709520cebe5e243dc3b70bb2 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/autotest/quick/quicktestparser.cpp')
-rw-r--r--src/plugins/autotest/quick/quicktestparser.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/autotest/quick/quicktestparser.cpp b/src/plugins/autotest/quick/quicktestparser.cpp
index 598f8a2e79..70875d4bd0 100644
--- a/src/plugins/autotest/quick/quicktestparser.cpp
+++ b/src/plugins/autotest/quick/quicktestparser.cpp
@@ -235,7 +235,7 @@ static bool checkQmlDocumentForQuickTestCode(QFutureInterface<TestParseResultPtr
parseResult->proFile = proFile;
parseResult->itemType = TestTreeItem::TestCase;
if (!testCaseName.isEmpty()) {
- parseResult->fileName = Utils::FilePath::fromString(testCase.m_locationAndType.m_name);
+ parseResult->fileName = testCase.m_locationAndType.m_filePath;
parseResult->name = testCaseName;
parseResult->line = testCase.m_locationAndType.m_line;
parseResult->column = testCase.m_locationAndType.m_column;
@@ -243,12 +243,12 @@ static bool checkQmlDocumentForQuickTestCode(QFutureInterface<TestParseResultPtr
for (const auto &function : testCase.m_functions) {
QuickTestParseResult *funcResult = new QuickTestParseResult(framework);
- funcResult->name = function.m_functionName;
- funcResult->displayName = function.m_functionName;
- funcResult->itemType = function.m_locationAndType.m_type;
- funcResult->fileName = Utils::FilePath::fromString(function.m_locationAndType.m_name);
- funcResult->line = function.m_locationAndType.m_line;
- funcResult->column = function.m_locationAndType.m_column;
+ funcResult->name = function.m_name;
+ funcResult->displayName = function.m_name;
+ funcResult->itemType = function.m_type;
+ funcResult->fileName = function.m_filePath;
+ funcResult->line = function.m_line;
+ funcResult->column = function.m_column;
funcResult->proFile = proFile;
parseResult->children.append(funcResult);