forked from qt-creator/qt-creator
AutoTest: Access plugin singleton through static functions
It's the more common pattern nowadays, and cheaper. Change-Id: If6217b2a820fbfa6f088fd9349225f5f8488f593 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -47,14 +47,12 @@ public:
|
||||
AutotestPlugin();
|
||||
~AutotestPlugin();
|
||||
|
||||
static AutotestPlugin *instance();
|
||||
|
||||
QSharedPointer<TestSettings> settings() const;
|
||||
|
||||
bool initialize(const QStringList &arguments, QString *errorString) override;
|
||||
void extensionsInitialized() override;
|
||||
ShutdownFlag aboutToShutdown() override;
|
||||
void updateMenuItemsEnabledState();
|
||||
|
||||
static QSharedPointer<TestSettings> settings();
|
||||
static void updateMenuItemsEnabledState();
|
||||
|
||||
private:
|
||||
bool checkLicense();
|
||||
|
||||
Reference in New Issue
Block a user