forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -40,8 +40,7 @@ Utils::Id CTestTool::buildSystemId() const
|
||||
|
||||
ITestTreeItem *CTestTool::createItemFromTestCaseInfo(const ProjectExplorer::TestCaseInfo &tci)
|
||||
{
|
||||
CTestTreeItem *item = new CTestTreeItem(this, tci.name, tci.path.toString(),
|
||||
TestTreeItem::TestCase);
|
||||
CTestTreeItem *item = new CTestTreeItem(this, tci.name, tci.path, TestTreeItem::TestCase);
|
||||
item->setLine(tci.line);
|
||||
return item;
|
||||
}
|
||||
@@ -55,7 +54,7 @@ ITestTreeItem *CTestTool::createRootNode()
|
||||
{
|
||||
return new CTestTreeItem(this,
|
||||
QCoreApplication::translate("CTestTool", "CTest"),
|
||||
QString(), ITestTreeItem::Root);
|
||||
Utils::FilePath(), ITestTreeItem::Root);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user