From b4dcfc1d91872fae64466da8b38bdcb9e1fad855 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 4 Sep 2015 11:02:14 +0200 Subject: Let TestTreeItem handle its parent Part of preparing to re-use QC's TreeModel/TreeItem for TestTreeModel/TestTreeItem. Change-Id: Ieab26e9061790dd4c3d8dc64ce292727a17977f7 Reviewed-by: Niels Weber Reviewed-by: David Schulz --- plugins/autotest/testcodeparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/autotest/testcodeparser.cpp') diff --git a/plugins/autotest/testcodeparser.cpp b/plugins/autotest/testcodeparser.cpp index b7a13b4ee8..e0a5ea3226 100644 --- a/plugins/autotest/testcodeparser.cpp +++ b/plugins/autotest/testcodeparser.cpp @@ -398,7 +398,7 @@ static TestTreeItem constructTestTreeItem(const QString &fileName, foreach (const QString &functionName, functions.keys()) { const TestCodeLocationAndType locationAndType = functions.value(functionName); TestTreeItem *treeItemChild = new TestTreeItem(functionName, locationAndType.m_name, - locationAndType.m_type, &treeItem); + locationAndType.m_type); treeItemChild->setLine(locationAndType.m_line); treeItemChild->setColumn(locationAndType.m_column); // check for data tags and if there are any for this function add them @@ -408,7 +408,7 @@ static TestTreeItem constructTestTreeItem(const QString &fileName, foreach (const TestCodeLocationAndType &tagLocation, tags) { TestTreeItem *tagTreeItem = new TestTreeItem(tagLocation.m_name, locationAndType.m_name, - tagLocation.m_type, treeItemChild); + tagLocation.m_type); tagTreeItem->setLine(tagLocation.m_line); tagTreeItem->setColumn(tagLocation.m_column); treeItemChild->appendChild(tagTreeItem); -- cgit v1.2.1