Bluetooth Chat example: update UI
* Add some icons for Light and Dark themes. Implement switching between
themes by listening to QStyleHints::colorSchemeChanged() signal and
manually picking the proper icon.
* Rework the desing to get rid of the unnecessary "Quit" button, and
also change the layout of buttons in the connection dialog.
* Update the screenshot in the documentation.
As a drive-by fix, make sure that the cursor is always at the end of
QTextEdit before showing a new message. The user can change the cursor
position by clicking/selecting the text, and this could previously lead
to some bugs in message visualization.
Fixes: QTBUG-118875
Pick-to: 6.6 6.5
Change-Id: Ia3a9dec3dae0d1411643ed851eba0ab4dc96a47f
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| commit | 6eb66322f0933de004baf35a96c5dd06d5d62ff6 |
| parent | 0e98c7b4f3187a55bc77417559231b02f2a81d13 |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Mon, 27 Nov 2023 09:45:09 +0100 |
- M examples/bluetooth/btchat/CMakeLists.txt
- M examples/bluetooth/btchat/btchat.pro
- M examples/bluetooth/btchat/chat.cpp
- M examples/bluetooth/btchat/chat.h
- M examples/bluetooth/btchat/chat.ui
- M examples/bluetooth/btchat/doc/images/btchat-example.png
- A examples/bluetooth/btchat/icons/btchat/24x24/bluetooth.png
- A examples/bluetooth/btchat/icons/btchat/24x24/bluetooth_dark.png
- A examples/bluetooth/btchat/icons/btchat/24x24/send.png
- A examples/bluetooth/btchat/icons/btchat/24x24/send_dark.png
- A examples/bluetooth/btchat/icons/btchat/24x24@2/bluetooth.png
- A examples/bluetooth/btchat/icons/btchat/24x24@2/bluetooth_dark.png
- A examples/bluetooth/btchat/icons/btchat/24x24@2/send.png
- A examples/bluetooth/btchat/icons/btchat/24x24@2/send_dark.png
- A examples/bluetooth/btchat/icons/btchat/24x24@3/bluetooth.png
- A examples/bluetooth/btchat/icons/btchat/24x24@3/bluetooth_dark.png
- A examples/bluetooth/btchat/icons/btchat/24x24@3/send.png
- A examples/bluetooth/btchat/icons/btchat/24x24@3/send_dark.png
- A examples/bluetooth/btchat/icons/btchat/24x24@4/bluetooth.png
- A examples/bluetooth/btchat/icons/btchat/24x24@4/bluetooth_dark.png
- A examples/bluetooth/btchat/icons/btchat/24x24@4/send.png
- A examples/bluetooth/btchat/icons/btchat/24x24@4/send_dark.png
- A examples/bluetooth/btchat/icons/btchat/index.theme
- M examples/bluetooth/btchat/main.cpp
- M examples/bluetooth/btchat/remoteselector.cpp
- M examples/bluetooth/btchat/remoteselector.h
- M examples/bluetooth/btchat/remoteselector.ui