aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/contactlist
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-11-17 22:51:53 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2016-11-17 21:55:49 +0000
commit82a7941020b04ffb9b78a9c94ac8d75bbdb099e9 (patch)
tree5a93ffd80a208d9e3d68c7dd06279ae48aa28a98 /examples/quickcontrols2/contactlist
parent4c2625b199e265d1d30ef2ad662e77319df80c74 (diff)
Contact List: give the contact dialog focus
Change-Id: Id8d48a42e283e262c44a9f2c64268459a4a11050 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'examples/quickcontrols2/contactlist')
-rw-r--r--examples/quickcontrols2/contactlist/ContactDialog.qml1
-rw-r--r--examples/quickcontrols2/contactlist/ContactDialogForm.ui.qml1
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/quickcontrols2/contactlist/ContactDialog.qml b/examples/quickcontrols2/contactlist/ContactDialog.qml
index c3b3f731..fd0ddbfd 100644
--- a/examples/quickcontrols2/contactlist/ContactDialog.qml
+++ b/examples/quickcontrols2/contactlist/ContactDialog.qml
@@ -59,6 +59,7 @@ Dialog {
y: parent.height / 2 - height / 2
standardButtons: Dialog.Ok | Dialog.Cancel
modal: true
+ focus: true
property int lastIndex
property QtObject lastModel
diff --git a/examples/quickcontrols2/contactlist/ContactDialogForm.ui.qml b/examples/quickcontrols2/contactlist/ContactDialogForm.ui.qml
index 3dd57875..f3397bb0 100644
--- a/examples/quickcontrols2/contactlist/ContactDialogForm.ui.qml
+++ b/examples/quickcontrols2/contactlist/ContactDialogForm.ui.qml
@@ -71,6 +71,7 @@ GridLayout {
TextField {
id: fullName
+ focus: true
Layout.fillWidth: true
Layout.minimumWidth: grid.minimumInputSize
Layout.alignment: Qt.AlignLeft | Qt.AlignBaseline