forked from qt-creator/qt-creator
ProjectExplorer: Introduce base class for enabled/disabled project configuration
... and use this as a base for all RunConfigurations. Clean out code in the individual run configurations dealing with their enabled/disabled state. Change-Id: Icc2ea136b056f7aea7ce96480b4402459d7ac0ce Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -58,7 +58,6 @@ public:
|
||||
QString applicationName() const;
|
||||
Utils::FileName bundleDirectory() const;
|
||||
Utils::FileName localExecutable() const;
|
||||
bool isEnabled() const override;
|
||||
QString disabledReason() const override;
|
||||
IosDeviceType deviceType() const;
|
||||
void setDeviceType(const IosDeviceType &deviceType);
|
||||
@@ -75,18 +74,13 @@ signals:
|
||||
void localExecutableChanged();
|
||||
|
||||
private:
|
||||
void proFileUpdated(QmakeProjectManager::QmakeProFile *pro, bool success, bool parseInProgress);
|
||||
void deviceChanges();
|
||||
void init();
|
||||
void enabledCheck();
|
||||
friend class IosRunConfigurationWidget;
|
||||
void updateDisplayNames();
|
||||
void updateEnabledState() final;
|
||||
|
||||
Utils::FileName m_profilePath;
|
||||
QString m_lastDisabledReason;
|
||||
bool m_lastIsEnabled;
|
||||
bool m_parseInProgress;
|
||||
bool m_parseSuccess;
|
||||
IosDeviceType m_deviceType;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user