diff options
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; }; /** |