From ba7449db03273af8ac0f17c0ca553d253a31e065 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 19 Sep 2014 13:42:38 +0200 Subject: provide a getter for OpenFlags --- src/core/kconfig.cpp | 7 +++++++ src/core/kconfig.h | 6 ++++++ 2 files changed, 13 insertions(+) (limited to 'src') diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp index c6dec436..782e9714 100644 --- a/src/core/kconfig.cpp +++ b/src/core/kconfig.cpp @@ -517,6 +517,13 @@ QString KConfig::name() const return d->fileName; } + +KConfig::OpenFlags KConfig::openFlags() const +{ + Q_D(const KConfig); + return d->openFlags; +} + Q_GLOBAL_STATIC(QString, globalMainConfigName) void KConfig::setMainConfigName(const QString &str) diff --git a/src/core/kconfig.h b/src/core/kconfig.h index d7d4b7df..a0d64f61 100644 --- a/src/core/kconfig.h +++ b/src/core/kconfig.h @@ -158,6 +158,12 @@ public: */ QString name() const; + /** + * @return the flags this object was opened with + * @since 5.2 + */ + OpenFlags openFlags() const; + /// @reimp bool sync() Q_DECL_OVERRIDE; -- cgit v1.2.1