summaryrefslogtreecommitdiffstats
path: root/app/SettingPage.qml
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qt.io>2016-12-20 19:18:49 +0900
committerTasuku Suzuki <tasuku.suzuki@qt.io>2016-12-20 19:22:58 +0900
commitc70f97efea9b58490362692833104a6a5f23da89 (patch)
treeca43bb1d61fb2fdf16e6e814dd32870cb1f5bf7c /app/SettingPage.qml
parent2f77037147a7609418c570c28ed02f0c1d31733f (diff)
Add changing status icon in example
to test this, you need to add a conf file under /etc/dbus-1/session.d/ <?xml version="1.0"?> <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> <busconfig> <policy context="default"> <allow send_destination="org.agl.homescreen"/> </policy> </busconfig> Change-Id: I82c4b01db86ee54de87fad1db2ebf3f743b7c020 Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Diffstat (limited to 'app/SettingPage.qml')
-rw-r--r--app/SettingPage.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/SettingPage.qml b/app/SettingPage.qml
index 10aea21..ceed9f5 100644
--- a/app/SettingPage.qml
+++ b/app/SettingPage.qml
@@ -29,6 +29,10 @@ Page {
parent.pop()
}
+ function setStatusIcon(index, icon) {
+ dbus.setStatusIcon(index, icon)
+ }
+
Connections {
target: root
onCheckedChanged: {