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:
@@ -70,7 +70,6 @@ public:
|
||||
QString mainScript() const;
|
||||
|
||||
// RunConfiguration
|
||||
bool isEnabled() const override;
|
||||
QString disabledReason() const override;
|
||||
virtual QWidget *createConfigurationWidget() override;
|
||||
Utils::OutputFormatter *createOutputFormatter() const override;
|
||||
@@ -84,13 +83,12 @@ protected:
|
||||
QmlProjectRunConfiguration(ProjectExplorer::Target *parent,
|
||||
QmlProjectRunConfiguration *source);
|
||||
virtual bool fromMap(const QVariantMap &map) override;
|
||||
void setEnabled(bool value);
|
||||
|
||||
private:
|
||||
void ctor();
|
||||
|
||||
void changeCurrentFile(Core::IEditor* = 0);
|
||||
void updateEnabled();
|
||||
void updateEnabledState() final;
|
||||
|
||||
QString executable() const;
|
||||
QString commandLineArguments() const;
|
||||
@@ -106,8 +104,6 @@ private:
|
||||
|
||||
QString m_scriptFile;
|
||||
QString m_qmlViewerArgs;
|
||||
|
||||
bool m_isEnabled;
|
||||
};
|
||||
|
||||
} // namespace QmlProjectManager
|
||||
|
||||
Reference in New Issue
Block a user