From 60f18e6c3c816f4bca7c72e5a4f114787309485a Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 27 Aug 2020 12:52:48 +0100 Subject: Introduce method to query KConfigSkeletonItem default value 5.64 added an isDefault method however this doesn't suffice for usage in KConfigDialogManager which compares a current value to the default. KConfigDialogManager currently uses a hack with side effects. Exposing the value directly solves that. --- src/core/kcoreconfigskeleton_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/kcoreconfigskeleton_p.h') diff --git a/src/core/kcoreconfigskeleton_p.h b/src/core/kcoreconfigskeleton_p.h index 389bc4f7..006bd45f 100644 --- a/src/core/kcoreconfigskeleton_p.h +++ b/src/core/kcoreconfigskeleton_p.h @@ -54,6 +54,7 @@ public: // HACK: Necessary to avoid introducing new virtuals in KConfigSkeletonItem std::function mIsDefaultImpl; std::function mIsSaveNeededImpl; + std::function mGetDefaultImpl; }; class KPropertySkeletonItemPrivate : public KConfigSkeletonItemPrivate -- cgit v1.2.1