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:
Christian Stenger
2018-02-01 09:17:56 +01:00
parent e984e5eacb
commit 56fbeb8a68
4 changed files with 19 additions and 8 deletions

View File

@@ -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