aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/toolchainoptionspage.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-06-17 08:24:47 +0200
committerhjk <hjk@theqtcompany.com>2016-06-17 08:09:48 +0000
commitfb482846fc895e2314ee850e81df6e9dbb7e898a (patch)
tree767ea2f0a36bc2c6c370984957278021b8239ca4 /src/plugins/projectexplorer/toolchainoptionspage.cpp
parent9a8043d9ce7381ed71593cc181cc5a8da137c952 (diff)
TreeModel: Add a StaticTreeItem(QString) convenience constructor
Covers the common case and hopefully avoids the recurring MSVC problem with initializer lists in this location. Change-Id: I1b2bbb083f9fc86af3b51b8f52615fb70c832b95 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Diffstat (limited to 'src/plugins/projectexplorer/toolchainoptionspage.cpp')
-rw-r--r--src/plugins/projectexplorer/toolchainoptionspage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/toolchainoptionspage.cpp b/src/plugins/projectexplorer/toolchainoptionspage.cpp
index 7778d158d2..ee40edfbb0 100644
--- a/src/plugins/projectexplorer/toolchainoptionspage.cpp
+++ b/src/plugins/projectexplorer/toolchainoptionspage.cpp
@@ -114,8 +114,8 @@ public:
[](ToolChainFactory *factory) { return factory->canCreate();});
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_autoRoot = new StaticTreeItem(ToolChainOptionsPage::tr("Auto-detected"));
+ m_manualRoot = new StaticTreeItem(ToolChainOptionsPage::tr("Manual"));
m_model.rootItem()->appendChild(m_autoRoot);
m_model.rootItem()->appendChild(m_manualRoot);
foreach (ToolChain *tc, ToolChainManager::toolChains()) {