summaryrefslogtreecommitdiffhomepage
path: root/options/value.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-28 03:18:31 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:48:18 +0100
commit74b401e24b9b3c9333f6e435860e1bc1f44a3b6f (patch)
tree1f1c022b2d55e7a3c42042987a5c32e3e81b4ac1 /options/value.hpp
parent7e07b216d6dddc2bd832bf85e2e5870cd4e48638 (diff)
options/{value,connector}: workaround friend declaration
Diffstat (limited to 'options/value.hpp')
-rw-r--r--options/value.hpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/options/value.hpp b/options/value.hpp
index 3a58f74c..898f6b05 100644
--- a/options/value.hpp
+++ b/options/value.hpp
@@ -57,13 +57,6 @@ class value final : public value_
return traits::pass_value(traits::value_with_default(traits::value_from_qvariant(variant), def));
}
- friend class detail::connector;
- void bundle_value_changed() const override
- {
- if (!self_name.isEmpty())
- emit valueChanged(traits::storage_from_value(get()));
- }
-
void store_variant(const QVariant& value) override
{
if (self_name.isEmpty())
@@ -80,6 +73,12 @@ class value final : public value_
public:
cc_noinline
+ void notify() const override
+ {
+ if (!self_name.isEmpty())
+ emit valueChanged(traits::storage_from_value(get()));
+ }
+
value<u>& operator=(const t& datum)
{
store_variant(traits::qvariant_from_value(traits::pass_value(datum)));