diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-08-28 11:38:07 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-08-28 20:08:43 +0200 |
commit | dce106c77cc2ecf58ceb38a041698dc35a80183c (patch) | |
tree | 30b698675f905b9d3a7bd265b297096feac80648 /tests/manual/qcursor/qcursorhighdpi/main.cpp | |
parent | 891fc4b42be2a56b61d1784898e8d0a9107e5055 (diff) |
High-DPI: Remove usage of Qt::AA_EnableHighDpiScaling
This attribute is now on by default.
Change-Id: I7c9d2e3445d204d3450758673048d514bc9c850c
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/manual/qcursor/qcursorhighdpi/main.cpp')
-rw-r--r-- | tests/manual/qcursor/qcursorhighdpi/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/manual/qcursor/qcursorhighdpi/main.cpp b/tests/manual/qcursor/qcursorhighdpi/main.cpp index 5a8bc542b9..2e920ab231 100644 --- a/tests/manual/qcursor/qcursorhighdpi/main.cpp +++ b/tests/manual/qcursor/qcursorhighdpi/main.cpp @@ -339,9 +339,7 @@ int main(int argc, char *argv[]) std::copy(argv + 1, argv + argc, std::back_inserter(arguments)); #if QT_VERSION > 0x050000 - if (arguments.contains("-s")) - QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); - else if (arguments.contains("-n")) + if (arguments.contains("-n")) QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); #endif // Qt 5 |