AutoTest: Use new setup pattern for TestNavigationWidgetFactory

Change-Id: I2d2c6f2a3dc8b416dae2e041f358a3f412216d4d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2024-01-09 16:01:16 +01:00
parent 78a708f0fe
commit 00815e006d
3 changed files with 25 additions and 23 deletions

View File

@@ -76,14 +76,13 @@ using namespace Utils;
namespace Autotest {
namespace Internal {
class AutotestPluginPrivate : public QObject
class AutotestPluginPrivate final : public QObject
{
Q_OBJECT
public:
AutotestPluginPrivate();
~AutotestPluginPrivate() override;
~AutotestPluginPrivate() final;
TestNavigationWidgetFactory m_navigationWidgetFactory;
TestResultsPane *m_resultsPane = nullptr;
QMap<QString, ChoicePair> m_runconfigCache;
@@ -117,6 +116,8 @@ AutotestPlugin::AutotestPlugin()
qRegisterMetaType<TestCodeLocationAndType>();
// warm up meta type system to be able to read Qt::CheckState with persistent settings
qRegisterMetaType<Qt::CheckState>();
setupTestNavigationWidgetFactory();
}
AutotestPlugin::~AutotestPlugin()