From 8e56083463374fa6525b5feff4373b5ab58914bb Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 10 Oct 2018 14:48:44 +0100 Subject: Expose getter method for KConfig::addConfigSources Test Plan: Used in subsequent patch Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D13033 --- src/core/kconfig.cpp | 6 ++++++ src/core/kconfig.h | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'src') diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp index a0d757e7..e4c9935b 100644 --- a/src/core/kconfig.cpp +++ b/src/core/kconfig.cpp @@ -780,6 +780,12 @@ void KConfig::addConfigSources(const QStringList &files) } } +QStringList KConfig::additionalConfigSources() const +{ + Q_D(const KConfig); + return d->extraFiles.toList(); +} + QString KConfig::locale() const { Q_D(const KConfig); diff --git a/src/core/kconfig.h b/src/core/kconfig.h index c6be56d6..5b341232 100644 --- a/src/core/kconfig.h +++ b/src/core/kconfig.h @@ -271,6 +271,11 @@ public: */ void addConfigSources(const QStringList &sources); + /** + * Returns a list of the additional configuration sources used in this object + */ + QStringList additionalConfigSources() const; + /// @} /// @{ locales /** -- cgit v1.2.1