summaryrefslogtreecommitdiff
path: root/src/main-lib/defaultconfiguration.cpp
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2018-06-07 08:57:41 +0200
committerRobert Griebl <robert.griebl@pelagicore.com>2018-06-07 09:18:50 +0000
commit7e050758810b64cd6f2c096ccd9f71de9ad4c9c1 (patch)
tree1712685faa5b0a6f32e9ff641c83c79e93f0d0ef /src/main-lib/defaultconfiguration.cpp
parent650f39ae68027089935d3d23b9a29f9c814b6769 (diff)
downloadqtapplicationmanager-7e050758810b64cd6f2c096ccd9f71de9ad4c9c1.tar.gz
Add options to specify iconTheme and searchPaths in am-config.yaml
This makes it easier to use a custom icon theme in the system-ui as well as in the apps. Change-Id: I8490e74541d0d9cb12e7ff542ef05679c2489812 Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com> Reviewed-by: Lukáš Tinkl <ltinkl@luxoft.com> Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'src/main-lib/defaultconfiguration.cpp')
-rw-r--r--src/main-lib/defaultconfiguration.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main-lib/defaultconfiguration.cpp b/src/main-lib/defaultconfiguration.cpp
index e878cc5e..c6e3a1c9 100644
--- a/src/main-lib/defaultconfiguration.cpp
+++ b/src/main-lib/defaultconfiguration.cpp
@@ -253,6 +253,16 @@ QString DefaultConfiguration::style() const
return value<QString>(nullptr, { "ui", "style" });
}
+QString DefaultConfiguration::iconThemeName() const
+{
+ return value<QString>(nullptr, { "ui", "iconThemeName" });
+}
+
+QStringList DefaultConfiguration::iconThemeSearchPaths() const
+{
+ return value<QStringList>(nullptr, { "ui", "iconThemeSearchPaths" });
+}
+
bool DefaultConfiguration::enableTouchEmulation() const
{
return value<bool>("enable-touch-emulation", { "ui", "enableTouchEmulation" });