msvc2013 can not handle 1 item initializer lists

Change-Id: I44b3c3888f15a6b68ddaed2777b90cf4057792b1
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
Tim Jenssen
2016-06-15 12:47:30 +02:00
committed by Thomas Hartmann
parent 2ee9ee9bff
commit 96a3d49b07
4 changed files with 10 additions and 10 deletions

View File

@@ -141,9 +141,9 @@ public:
CMakeToolItemModel::CMakeToolItemModel()
{
setHeader(QStringList() << tr("Name") << tr("Location"));
rootItem()->appendChild(new StaticTreeItem({ tr("Auto-detected") }));
rootItem()->appendChild(new StaticTreeItem({ tr("Manual") }));
setHeader({tr("Name"), tr("Location")});
rootItem()->appendChild(new StaticTreeItem(QStringList(tr("Auto-detected"))));
rootItem()->appendChild(new StaticTreeItem(QStringList(tr("Manual"))));
foreach (const CMakeTool *item, CMakeToolManager::cmakeTools())
addCMakeTool(item, false);