Commit 96a3d49b authored by Tim Jenssen's avatar Tim Jenssen Committed by Thomas Hartmann

msvc2013 can not handle 1 item initializer lists

Change-Id: I44b3c3888f15a6b68ddaed2777b90cf4057792b1
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@theqtcompany.com>
parent 2ee9ee9b
......@@ -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);
......
......@@ -107,8 +107,8 @@ KitModel::KitModel(QBoxLayout *parentLayout, QObject *parent)
m_parentLayout(parentLayout)
{
setHeader(QStringList(tr("Name")));
m_autoRoot = new StaticTreeItem({ tr("Auto-detected") });
m_manualRoot = new StaticTreeItem({ tr("Manual") });
m_autoRoot = new StaticTreeItem(QStringList(tr("Auto-detected")));
m_manualRoot = new StaticTreeItem(QStringList(tr("Manual")));
rootItem()->appendChild(m_autoRoot);
rootItem()->appendChild(m_manualRoot);
......
......@@ -113,9 +113,9 @@ public:
m_factories = ExtensionSystem::PluginManager::getObjects<ToolChainFactory>(
[](ToolChainFactory *factory) { return factory->canCreate();});
m_model.setHeader(QStringList() << ToolChainOptionsPage::tr("Name") << ToolChainOptionsPage::tr("Type"));
m_autoRoot = new StaticTreeItem({ ToolChainOptionsPage::tr("Auto-detected") });
m_manualRoot = new StaticTreeItem({ ToolChainOptionsPage::tr("Manual") });
m_model.setHeader({ ToolChainOptionsPage::tr("Name"), ToolChainOptionsPage::tr("Type") });
m_autoRoot = new StaticTreeItem(QStringList(ToolChainOptionsPage::tr("Auto-detected")));
m_manualRoot = new StaticTreeItem(QStringList(ToolChainOptionsPage::tr("Manual")));
m_model.rootItem()->appendChild(m_autoRoot);
m_model.rootItem()->appendChild(m_manualRoot);
foreach (ToolChain *tc, ToolChainManager::toolChains()) {
......
......@@ -220,8 +220,8 @@ QtOptionsPageWidget::QtOptionsPageWidget(QWidget *parent)
m_ui->versionInfoWidget->setWidget(versionInfoWidget);
m_ui->versionInfoWidget->setState(DetailsWidget::NoSummary);
m_autoItem = new StaticTreeItem({ tr("Auto-detected") });
m_manualItem = new StaticTreeItem({ tr("Manual" )});
m_autoItem = new StaticTreeItem(QStringList(tr("Auto-detected")));
m_manualItem = new StaticTreeItem(QStringList(tr("Manual" )));
m_model = new LeveledTreeModel<Utils::TreeItem, QtVersionItem>();
m_model->setHeader({tr("Name"), tr("qmake Location"), tr("Type")});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment