diff options
author | David Edmundson <kde@davidedmundson.co.uk> | 2018-10-10 14:48:44 +0100 |
---|---|---|
committer | David Edmundson <kde@davidedmundson.co.uk> | 2018-10-10 14:48:44 +0100 |
commit | 8e56083463374fa6525b5feff4373b5ab58914bb (patch) | |
tree | d1211393e17cffe3ce858d50601e40c376b2b2f6 | |
parent | 27764485b4b91b909d5b47bf9b75567474031a98 (diff) | |
download | kconfig-8e56083463374fa6525b5feff4373b5ab58914bb.tar.gz kconfig-8e56083463374fa6525b5feff4373b5ab58914bb.tar.bz2 |
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
-rw-r--r-- | src/core/kconfig.cpp | 6 | ||||
-rw-r--r-- | src/core/kconfig.h | 5 |
2 files changed, 11 insertions, 0 deletions
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 /** |