From 059a4feee45b91d819d7675fe5b3cc220f29c6ee Mon Sep 17 00:00:00 2001 From: Benjamin Port Date: Wed, 12 Feb 2020 10:51:32 +0100 Subject: Add setNotifyFunction to KPropertySkeletonItem Summary: This function will be called when the property value change Reviewers: ervin, meven, crossi Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D27342 --- src/core/kcoreconfigskeleton.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/kcoreconfigskeleton.h') diff --git a/src/core/kcoreconfigskeleton.h b/src/core/kcoreconfigskeleton.h index a6f58ebe..7abc4052 100644 --- a/src/core/kcoreconfigskeleton.h +++ b/src/core/kcoreconfigskeleton.h @@ -294,6 +294,12 @@ public: void setDefault() override; /** @copydoc KConfigSkeletonItem::swapDefault() */ void swapDefault() override; + + /** + * Set a notify function, it will be invoked when the value of the property changes. + * @since 5.68 + */ + void setNotifyFunction(const std::function &impl); }; -- cgit v1.2.1