diff options
author | Kevin Ottens <kevin.ottens@enioka.com> | 2019-11-08 12:19:52 +0100 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@enioka.com> | 2019-11-12 13:33:19 +0100 |
commit | 44cfa0631d25a1b558640e6122fa6b755bb8c7ad (patch) | |
tree | 6301304591a676e0e6c7389f890252f4e632c2e9 /src/core/kcoreconfigskeleton.h | |
parent | 83732a848ff0c2c83501b853d90ec1ae5e3a6583 (diff) | |
download | kconfig-44cfa0631d25a1b558640e6122fa6b755bb8c7ad.tar.gz kconfig-44cfa0631d25a1b558640e6122fa6b755bb8c7ad.tar.bz2 |
Prepare KConfigSkeletonItem to allow inheriting its private class
Reviewers: #frameworks, dfaure, davidedmundson, bport, crossi
Subscribers: vkrause, kde-frameworks-devel
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D25210
Diffstat (limited to 'src/core/kcoreconfigskeleton.h')
-rw-r--r-- | src/core/kcoreconfigskeleton.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/kcoreconfigskeleton.h b/src/core/kcoreconfigskeleton.h index 76b78a20..ffb6d6a5 100644 --- a/src/core/kcoreconfigskeleton.h +++ b/src/core/kcoreconfigskeleton.h @@ -52,6 +52,7 @@ class KConfigSkeletonItemPrivate; */ class KCONFIGCORE_EXPORT KConfigSkeletonItem { + Q_DECLARE_PRIVATE(KConfigSkeletonItem) public: typedef QList < KConfigSkeletonItem * >List; typedef QHash < QString, KConfigSkeletonItem * > Dict; @@ -226,6 +227,8 @@ public: bool isSaveNeeded() const; protected: + explicit KConfigSkeletonItem(KConfigSkeletonItemPrivate &dd, const QString &_group, const QString &_key); + /** * sets mIsImmutable to true if mKey in config is immutable * @param group KConfigGroup to check if mKey is immutable in @@ -241,8 +244,7 @@ protected: void setIsDefaultImpl(const std::function<bool()> &impl); void setIsSaveNeededImpl(const std::function<bool()> &impl); -private: - KConfigSkeletonItemPrivate *const d; + KConfigSkeletonItemPrivate *const d_ptr; }; /** |