From bbd5a988592e31b5f8ec0a111e7fea30c222f0ec Mon Sep 17 00:00:00 2001 From: Andre de la Rocha Date: Thu, 6 Jun 2019 13:55:29 +0200 Subject: 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 --- examples/bluetooth/btchat/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/bluetooth/btchat/main.cpp') diff --git a/examples/bluetooth/btchat/main.cpp b/examples/bluetooth/btchat/main.cpp index 5c7bbf75..e728efd2 100644 --- a/examples/bluetooth/btchat/main.cpp +++ b/examples/bluetooth/btchat/main.cpp @@ -56,6 +56,7 @@ int main(int argc, char *argv[]) { //QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); + QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); Chat d; -- cgit v1.2.3