summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/btchat/chat.ui
diff options
context:
space:
mode:
authorAndreas Buhr <andreas@andreasbuhr.de>2021-02-12 17:42:07 +0100
committerAndreas Buhr <andreas@andreasbuhr.de>2021-02-15 13:07:28 +0100
commit764c1d056f95091f0e0207ad94aff99e363106fb (patch)
tree6fed9f421f5ffc596f9cc90cb15ed4d9b43832ee /examples/bluetooth/btchat/chat.ui
parentc047807b1819f9d0503e18366b4a482dd2a2dd3a (diff)
Beautify btchat: Leave focus on text input on send message
With this patch, one can use btchat like every chat application: Just type a message, press return, type the next message. Before, it was necessary to move the focus to the text input again after each message. Change-Id: I534143340284477810c93bbeebabb5d02132a208 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/bluetooth/btchat/chat.ui')
-rw-r--r--examples/bluetooth/btchat/chat.ui3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/bluetooth/btchat/chat.ui b/examples/bluetooth/btchat/chat.ui
index d7829294..639626f1 100644
--- a/examples/bluetooth/btchat/chat.ui
+++ b/examples/bluetooth/btchat/chat.ui
@@ -84,6 +84,9 @@
<property name="text">
<string>Connect</string>
</property>
+ <property name="autoDefault">
+ <bool>false</bool>
+ </property>
</widget>
</item>
</layout>