Skip to content
Snippets Groups Projects
Commit 4d3a26be authored by Daniel Teske's avatar Daniel Teske
Browse files

RemoteLinuxRunconfiguration: Remove disabledReason()/setDisabledReason()


setDisabledReason() is never called so disabledReason() always returns
QString(). The base class implementation can handle that job, too.

Change-Id: I9f3f7cad2e8abc39f0d5001fa44506d81fe47e44
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
parent efe6e466
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,6 @@ public: ...@@ -75,7 +75,6 @@ public:
QString projectFilePath; QString projectFilePath;
QString gdbPath; QString gdbPath;
QStringList arguments; QStringList arguments;
QString disabledReason;
bool useAlternateRemoteExecutable; bool useAlternateRemoteExecutable;
QString alternateRemoteExecutable; QString alternateRemoteExecutable;
QString workingDirectory; QString workingDirectory;
...@@ -123,11 +122,6 @@ bool RemoteLinuxRunConfiguration::isEnabled() const ...@@ -123,11 +122,6 @@ bool RemoteLinuxRunConfiguration::isEnabled() const
return true; return true;
} }
QString RemoteLinuxRunConfiguration::disabledReason() const
{
return d->disabledReason;
}
QWidget *RemoteLinuxRunConfiguration::createConfigurationWidget() QWidget *RemoteLinuxRunConfiguration::createConfigurationWidget()
{ {
return new RemoteLinuxRunConfigurationWidget(this); return new RemoteLinuxRunConfigurationWidget(this);
...@@ -273,11 +267,6 @@ QString RemoteLinuxRunConfiguration::projectFilePath() const ...@@ -273,11 +267,6 @@ QString RemoteLinuxRunConfiguration::projectFilePath() const
return d->projectFilePath; return d->projectFilePath;
} }
void RemoteLinuxRunConfiguration::setDisabledReason(const QString &reason) const
{
d->disabledReason = reason;
}
const char *RemoteLinuxRunConfiguration::IdPrefix = "RemoteLinuxRunConfiguration:"; const char *RemoteLinuxRunConfiguration::IdPrefix = "RemoteLinuxRunConfiguration:";
} // namespace RemoteLinux } // namespace RemoteLinux
...@@ -63,7 +63,6 @@ public: ...@@ -63,7 +63,6 @@ public:
~RemoteLinuxRunConfiguration(); ~RemoteLinuxRunConfiguration();
bool isEnabled() const; bool isEnabled() const;
QString disabledReason() const;
QWidget *createConfigurationWidget(); QWidget *createConfigurationWidget();
Utils::OutputFormatter *createOutputFormatter() const; Utils::OutputFormatter *createOutputFormatter() const;
...@@ -98,7 +97,6 @@ protected: ...@@ -98,7 +97,6 @@ protected:
RemoteLinuxRunConfiguration *source); RemoteLinuxRunConfiguration *source);
bool fromMap(const QVariantMap &map); bool fromMap(const QVariantMap &map);
QString defaultDisplayName(); QString defaultDisplayName();
void setDisabledReason(const QString &reason) const;
protected slots: protected slots:
void updateEnabledState() { emit enabledChanged(); } void updateEnabledState() { emit enabledChanged(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment