diff --git a/src/core/kconfig.h b/src/core/kconfig.h --- a/src/core/kconfig.h +++ b/src/core/kconfig.h @@ -271,6 +271,11 @@ */ void addConfigSources(const QStringList &sources); + /** + * Returns a list of the additional configuration sources used in this object + */ + QStringList additionalConfigSources() const; + /// @} /// @{ locales /** diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp --- a/src/core/kconfig.cpp +++ b/src/core/kconfig.cpp @@ -780,6 +780,12 @@ } } +QStringList KConfig::additionalConfigSources() const +{ + Q_D(const KConfig); + return d->extraFiles.toList(); +} + QString KConfig::locale() const { Q_D(const KConfig);