forked from qt-creator/qt-creator
AutoTest: Avoid global object pool
Instead of adding internal objects to the global object pool keep them to handle their destruction. Change-Id: Ie6217b2a820fbfa6f088fd9349225f5f8488f593 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -33,7 +33,10 @@ namespace Autotest {
|
||||
namespace Internal {
|
||||
|
||||
class TestFrameworkManager;
|
||||
class TestNavigationWidgetFactory;
|
||||
class TestResultsPane;
|
||||
struct TestSettings;
|
||||
class TestSettingsPage;
|
||||
|
||||
class AutotestPlugin : public ExtensionSystem::IPlugin
|
||||
{
|
||||
@@ -61,6 +64,9 @@ private:
|
||||
QList<QObject *> createTestObjects() const override;
|
||||
const QSharedPointer<TestSettings> m_settings;
|
||||
TestFrameworkManager *m_frameworkManager = nullptr;
|
||||
TestSettingsPage *m_testSettingPage = nullptr;
|
||||
TestNavigationWidgetFactory *m_navigationWidgetFactory = nullptr;
|
||||
TestResultsPane *m_resultsPane = nullptr;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user