fix: replace remaining QList::append({}) in plugins and tests

Missed plugin and test directories in the previous Qt 6.8 compat fix.
This commit is contained in:
IChooseYou
2026-03-14 12:11:08 -06:00
committed by IChooseYou
parent 1501a1542c
commit 6a30e0a402
12 changed files with 1140 additions and 46 deletions

View File

@@ -202,7 +202,7 @@ void BenchProject::benchBuildWorkspaceModel()
// Build TabInfo array
QVector<TabInfo> tabs;
for (const auto& t : trees)
tabs.append({ &t, QStringLiteral("test"), nullptr });
tabs.push_back(TabInfo{ &t, QStringLiteral("test"), nullptr });
QStandardItemModel model;
const int ITERS = 20;
@@ -244,7 +244,7 @@ void BenchProject::benchWorkspaceSearch()
QVector<TabInfo> tabs;
for (const auto& t : trees)
tabs.append({ &t, QStringLiteral("test"), nullptr });
tabs.push_back(TabInfo{ &t, QStringLiteral("test"), nullptr });
QStandardItemModel model;
buildProjectExplorer(&model, tabs);