diff options
author | Andre de la Rocha <andre.rocha@qt.io> | 2019-06-06 13:55:29 +0200 |
---|---|---|
committer | Andre de la Rocha <andre.rocha@qt.io> | 2019-06-06 13:55:29 +0200 |
commit | bbd5a988592e31b5f8ec0a111e7fea30c222f0ec (patch) | |
tree | e0d88cc8f106f46a24489a7b8fee19f627898146 /examples/bluetooth/btfiletransfer/main.cpp | |
parent | 6ee559eefc3fee286eb92a5f5d8b8fe004d0dc42 (diff) |
Update Bluetooth examples for high-DPI displays and nullptr
This change sets the Qt::AA_EnableHighDpiScaling application attribute.
It also uses nullptr to initialize pointers and adds a trivial
optimization to the low energy scanner example.
Change-Id: Ia923573ad78108a2a6a72be4c0948ea97a7ec094
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/bluetooth/btfiletransfer/main.cpp')
-rw-r--r-- | examples/bluetooth/btfiletransfer/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/bluetooth/btfiletransfer/main.cpp b/examples/bluetooth/btfiletransfer/main.cpp index 2c2b6df5..1871e207 100644 --- a/examples/bluetooth/btfiletransfer/main.cpp +++ b/examples/bluetooth/btfiletransfer/main.cpp @@ -54,6 +54,7 @@ int main(int argc, char *argv[]) { + QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); RemoteSelector d; |