diff options
| author | David Edmundson <kde@davidedmundson.co.uk> | 2020-08-27 12:52:48 +0100 |
|---|---|---|
| committer | David Edmundson <kde@davidedmundson.co.uk> | 2020-08-28 14:12:14 +0000 |
| commit | 60f18e6c3c816f4bca7c72e5a4f114787309485a (patch) | |
| tree | 7a9ec2de061793b348678835d56397f0f8669f7e /src/core/kcoreconfigskeleton_p.h | |
| parent | 0f1b47f2ab4b374a6d85dcf9dd63e1159cc7ea65 (diff) | |
| download | kconfig-60f18e6c3c816f4bca7c72e5a4f114787309485a.tar.gz kconfig-60f18e6c3c816f4bca7c72e5a4f114787309485a.tar.bz2 | |
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.
Diffstat (limited to 'src/core/kcoreconfigskeleton_p.h')
| -rw-r--r-- | src/core/kcoreconfigskeleton_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<bool()> mIsDefaultImpl; std::function<bool()> mIsSaveNeededImpl; + std::function<QVariant()> mGetDefaultImpl; }; class KPropertySkeletonItemPrivate : public KConfigSkeletonItemPrivate |
