diff options
author | hjk <hjk@qt.io> | 2020-03-12 13:58:09 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-03-13 11:12:36 +0000 |
commit | 2c79196ab5d35d472fa03dd6690f6cc1b1d26b9c (patch) | |
tree | 06825e76ab01cdcd32ef1522f3a87031847a08fd /src/plugins/autotest/itestframework.h | |
parent | ea8efe58c61bce54d4f73362cef542c5fad0fb37 (diff) |
AutoTest: Tie framework settings explicitly to ITestFramework instance
This leaves no doubts regarding lifetime and type.
Change-Id: I1fdd60427a469f32236ea0fa923ec9fa308c338e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/autotest/itestframework.h')
-rw-r--r-- | src/plugins/autotest/itestframework.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/plugins/autotest/itestframework.h b/src/plugins/autotest/itestframework.h index 11bdfa31cc..5b23aab914 100644 --- a/src/plugins/autotest/itestframework.h +++ b/src/plugins/autotest/itestframework.h @@ -28,8 +28,6 @@ #include "testtreeitem.h" #include "itestparser.h" -namespace Core { class IOptionsPage; } - namespace Autotest { class IFrameworkSettings; @@ -46,13 +44,8 @@ public: virtual const char *name() const = 0; virtual unsigned priority() const = 0; // should this be modifyable? - virtual bool hasFrameworkSettings() const { return false; } - virtual IFrameworkSettings *createFrameworkSettings() const { return nullptr; } - virtual Core::IOptionsPage *createSettingsPage(QSharedPointer<IFrameworkSettings> settings) const - { - Q_UNUSED(settings) - return nullptr; - } + + virtual IFrameworkSettings *frameworkSettings() { return nullptr; } TestTreeItem *rootNode() { if (!m_rootNode) |