diff options
author | hjk <hjk@qt.io> | 2020-03-13 12:16:26 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-03-16 09:51:04 +0000 |
commit | c1f210dd69a3fc99851544bd78c82c624a02bc20 (patch) | |
tree | 19f4f8ddae5d68b1cb923847b5a28cb0048d9db6 /src/plugins/autotest/itestframework.h | |
parent | 22cdc470776ec3a2447688eaca972ec018a2d024 (diff) |
AutoTest: Provide easy Id<->ITestFramework * mapping
They are 1:1, idea is to replace (most of the) Id uses with the
framework itself, overall simplifying e.g. TestFrameworkManager.
For a salami-tactics transition, easy convervion between the two helps.
Change-Id: Ib6d166ae34a3189d900353be7a181a1e45467a7c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/autotest/itestframework.h')
-rw-r--r-- | src/plugins/autotest/itestframework.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/autotest/itestframework.h b/src/plugins/autotest/itestframework.h index 5b23aab914..78ad2ae1e8 100644 --- a/src/plugins/autotest/itestframework.h +++ b/src/plugins/autotest/itestframework.h @@ -62,6 +62,8 @@ public: Core::Id settingsId() const; + Core::Id id() const { return Core::Id(Constants::FRAMEWORK_PREFIX).withSuffix(name()); } + bool active() const { return m_active; } void setActive(bool active) { m_active = active; } bool grouping() const { return m_grouping; } |