diff options
Diffstat (limited to 'plugins/autotest/testtreemodel.cpp')
-rw-r--r-- | plugins/autotest/testtreemodel.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/plugins/autotest/testtreemodel.cpp b/plugins/autotest/testtreemodel.cpp index b6b9c8ca3a..ccc7616df4 100644 --- a/plugins/autotest/testtreemodel.cpp +++ b/plugins/autotest/testtreemodel.cpp @@ -53,8 +53,6 @@ TestTreeModel::TestTreeModel(QObject *parent) : &TestTreeModel::removeAllTestItems, Qt::QueuedConnection); connect(m_parser, &TestCodeParser::testItemCreated, this, &TestTreeModel::addTestTreeItem, Qt::QueuedConnection); - connect(m_parser, &TestCodeParser::testItemsCreated, - this, &TestTreeModel::addTestTreeItems, Qt::QueuedConnection); connect(m_parser, &TestCodeParser::testItemModified, this, &TestTreeModel::modifyTestTreeItem, Qt::QueuedConnection); connect(m_parser, &TestCodeParser::testItemsRemoved, @@ -670,19 +668,6 @@ void TestTreeModel::addTestTreeItem(TestTreeItem *item, TestTreeModel::Type type emit testTreeModelChanged(); } -void TestTreeModel::addTestTreeItems(const QList<TestTreeItem> &itemList, TestTreeModel::Type type) -{ - TestTreeItem *parent = rootItemForType(type); - QModelIndex index = rootIndexForType(type); - - beginInsertRows(index, parent->childCount(), parent->childCount() + itemList.size() - 1); - foreach (const TestTreeItem &item, itemList) { - TestTreeItem *toBeAdded = new TestTreeItem(item); - parent->appendChild(toBeAdded); - } - endInsertRows(); -} - void TestTreeModel::updateUnnamedQuickTest(const QString &mainFile, const QMap<QString, TestCodeLocationAndType> &functions) { |