diff options
author | hjk <[email protected]> | 2018-04-16 12:17:18 +0200 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2018-04-27 13:46:52 +0000 |
commit | 103d6e8d7b699c90a32deec1e9dcc07181e738d5 (patch) | |
tree | 2f419a1b0f2b8181b13d5f3b591283823ded7dde /plugins/haskell/haskellrunconfiguration.h | |
parent | 8abeba7cd428411e9c74ad211dcac096c208ab38 (diff) |
Adapt to upstream changes
Change-Id: I22bd72ee5b8d8a28d87459fe125ef3a211b9ad16
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'plugins/haskell/haskellrunconfiguration.h')
-rw-r--r-- | plugins/haskell/haskellrunconfiguration.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/plugins/haskell/haskellrunconfiguration.h b/plugins/haskell/haskellrunconfiguration.h index 83efde7..536124d 100644 --- a/plugins/haskell/haskellrunconfiguration.h +++ b/plugins/haskell/haskellrunconfiguration.h @@ -25,7 +25,7 @@ #pragma once -#include <projectexplorer/runconfiguration.h> +#include <projectexplorer/runconfigurationaspects.h> namespace Haskell { namespace Internal { @@ -36,25 +36,26 @@ public: HaskellRunConfigurationFactory(); }; -class HaskellRunConfiguration : public ProjectExplorer::RunConfiguration +class HaskellExecutableAspect : public ProjectExplorer::BaseStringAspect { Q_OBJECT public: - HaskellRunConfiguration(ProjectExplorer::Target *parent); + HaskellExecutableAspect(ProjectExplorer::RunConfiguration *rc); + void update(); +}; - QString extraId() const final; +class HaskellRunConfiguration : public ProjectExplorer::RunConfiguration +{ + Q_OBJECT -private: - QWidget *createConfigurationWidget() final; - ProjectExplorer::Runnable runnable() const final; - void handleBuildSystemDataUpdated(); +public: + HaskellRunConfiguration(ProjectExplorer::Target *target, Core::Id id); - bool fromMap(const QVariantMap &map) final; - QVariantMap toMap() const final; +private: + void fillConfigurationLayout(QFormLayout *layout) const final; void doAdditionalSetup(const ProjectExplorer::RunConfigurationCreationInfo &info) final; - - QString m_executable; + ProjectExplorer::Runnable runnable() const final; }; } // namespace Internal |