aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/customtoolchain.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2013-08-09 17:49:30 +0200
committerhjk <hjk121@nokiamail.com>2013-08-12 16:14:06 +0200
commitd3c299cbe33869edd6e0a434b781d0ffa3c5e3ac (patch)
tree768a30eb1b181023fda9176dcd2d59b5101e1bd3 /src/plugins/projectexplorer/customtoolchain.cpp
parentbf6685bc5d162014f7461ff7fe0625a8bdd95257 (diff)
ProjectExplorer: Streamline ToolchainFactory interface
Change-Id: I70dba496c4d1eeb9c6767080d179f86f20c1b107 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer/customtoolchain.cpp')
-rw-r--r--src/plugins/projectexplorer/customtoolchain.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/projectexplorer/customtoolchain.cpp b/src/plugins/projectexplorer/customtoolchain.cpp
index cb35e3b8f5..9e4626af03 100644
--- a/src/plugins/projectexplorer/customtoolchain.cpp
+++ b/src/plugins/projectexplorer/customtoolchain.cpp
@@ -391,14 +391,10 @@ namespace Internal {
// CustomToolChainFactory
// --------------------------------------------------------------------------
-QString CustomToolChainFactory::displayName() const
+CustomToolChainFactory::CustomToolChainFactory()
{
- return tr("Custom");
-}
-
-QString CustomToolChainFactory::id() const
-{
- return QLatin1String(Constants::CUSTOM_TOOLCHAIN_ID);
+ setId(Constants::CUSTOM_TOOLCHAIN_ID);
+ setDisplayName(tr("Custom"));
}
bool CustomToolChainFactory::canCreate()