diff options
| author | hjk <hjk@qt.io> | 2017-11-10 15:43:23 +0100 |
|---|---|---|
| committer | hjk <hjk@qt.io> | 2017-11-14 10:58:30 +0000 |
| commit | dfd4ad8c2d177cf6415f457cdcf62dbc3b17a6a3 (patch) | |
| tree | b5640b58e3ceb1ef60f176b3bb7b12aac289263a /src/plugins/pythoneditor | |
| parent | 5483d45e5e2147dd3f18341401dd7c35e44a04d2 (diff) | |
| download | qt-creator-dfd4ad8c2d177cf6415f457cdcf62dbc3b17a6a3.tar.gz | |
ProjectExplorer: Simplify IRunConfigurationFactory::clone() use
Change-Id: I005d6c87142d26dfc7ae1349329737a68f54c427
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/pythoneditor')
| -rw-r--r-- | src/plugins/pythoneditor/pythoneditorplugin.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp index b81f02eca5..188ca479c5 100644 --- a/src/plugins/pythoneditor/pythoneditorplugin.cpp +++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp @@ -278,6 +278,7 @@ public: PythonRunConfigurationFactory() { setObjectName("PythonRunConfigurationFactory"); + registerRunConfiguration<PythonRunConfiguration>(); } QList<Core::Id> availableCreationIds(Target *parent, CreationMode mode) const override @@ -323,13 +324,6 @@ public: return source->id().name().startsWith(PythonRunConfigurationPrefix); } - RunConfiguration *clone(Target *parent, RunConfiguration *source) override - { - if (!canClone(parent, source)) - return 0; - return cloneHelper<PythonRunConfiguration>(parent, source); - } - private: bool canHandle(Target *parent) const { return dynamic_cast<PythonProject *>(parent->project()); } |
