summaryrefslogtreecommitdiffstats
path: root/examples/applicationmanager/intents/system-ui.qml
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@pelagicore.com>2018-12-20 16:39:06 +0100
committerRobert Griebl <robert.griebl@pelagicore.com>2019-02-12 13:49:55 +0000
commitffcb90a879ab1c1d552950cccda12ba14da9230e (patch)
tree674d94986746fdb19fac9bd3950a0d30d5cc3f31 /examples/applicationmanager/intents/system-ui.qml
parent81d6df8e934ebdac1553e3cb102106fc0fb64f93 (diff)
Add documentation for the intents example
Change-Id: I474f8bc8d8a3efa7b0f8405892d56a793a88e883 Reviewed-by: Kavindra Palaraja <kpalaraja@luxoft.com>
Diffstat (limited to 'examples/applicationmanager/intents/system-ui.qml')
-rw-r--r--examples/applicationmanager/intents/system-ui.qml16
1 files changed, 10 insertions, 6 deletions
diff --git a/examples/applicationmanager/intents/system-ui.qml b/examples/applicationmanager/intents/system-ui.qml
index 8cec8ee2..07efbcf2 100644
--- a/examples/applicationmanager/intents/system-ui.qml
+++ b/examples/applicationmanager/intents/system-ui.qml
@@ -98,7 +98,7 @@ Item {
}
columns: 2
- IntentPage {
+ IntentsUIPage {
id: sysui_page
width: parent.width / 2
height: parent.height / 2
@@ -123,6 +123,12 @@ Item {
}
}
+ //! [Connection]
+ Connections {
+ target: IntentServer
+ onDisambiguationRequest: { disambiguationDialog.add(requestId, potentialIntents) }
+ }
+ //! [Connection]
Dialog {
id: disambiguationDialog
@@ -156,6 +162,8 @@ Item {
open()
}
}
+
+ //! [OkCancel]
onAccepted: {
IntentServer.acknowledgeDisambiguationRequest(currentRequest.requestId,
currentRequest.intents[handlingApplications.currentIndex]);
@@ -165,6 +173,7 @@ Item {
IntentServer.rejectDisambiguationRequest(currentRequest.requestId)
showNext()
}
+ //! [OkCancel]
GridLayout {
id: grid
@@ -207,9 +216,4 @@ Item {
}
}
}
-
- Connections {
- target: IntentServer
- onDisambiguationRequest: { disambiguationDialog.add(requestId, potentialIntents) }
- }
}