summaryrefslogtreecommitdiffstats
path: root/examples/applicationmanager/intents/system-ui.qml
diff options
context:
space:
mode:
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) }
- }
}