diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2020-03-24 10:14:47 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2020-04-30 13:09:32 +0000 |
commit | dbb640783cd70d6df100f3505f64d1186075ac1b (patch) | |
tree | 6de7af9d933476a0c548b3affd58e43649e03e54 /src/plugins/projectexplorer/projectconfigurationaspects.h | |
parent | fcd6384f4d5dc48ab24ee0e897af9ef760924e92 (diff) |
BaseStringAspect: Provide a way to place a hook between UI and value
Change-Id: Ie6fd1c3215cba06dd67673b978af9f457f7fa9c8
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectconfigurationaspects.h')
-rw-r--r-- | src/plugins/projectexplorer/projectconfigurationaspects.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/projectconfigurationaspects.h b/src/plugins/projectexplorer/projectconfigurationaspects.h index 71567d493f1..f57b69869ab 100644 --- a/src/plugins/projectexplorer/projectconfigurationaspects.h +++ b/src/plugins/projectexplorer/projectconfigurationaspects.h @@ -115,6 +115,9 @@ public: void addToLayout(LayoutBuilder &builder) override; + // Hook between UI and BaseStringAspect: + using ValueAcceptor = std::function<Utils::optional<QString>(const QString &, const QString &)>; + void setValueAcceptor(ValueAcceptor &&acceptor); QString value() const; void setValue(const QString &val); |