Commit ee92c9a6 authored by Laurent Montel's avatar Laurent Montel
Browse files

Qt::AA_UseHighDpiPixmaps is enabled by default in qt6

parent 4709cec4
Pipeline #167934 failed with stage
in 1 minute and 17 seconds
......@@ -27,12 +27,14 @@ namespace Oxygen
QApplication app( argc, argv );
QCommandLineParser commandLine;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QCommandLineOption enableHighDpi( "highdpi", "Enable High DPI pixmaps" );
commandLine.addOption( enableHighDpi );
#endif
commandLine.process( app );
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
app.setAttribute( Qt::AA_UseHighDpiPixmaps, commandLine.isSet( enableHighDpi ) );
#endif
app.setApplicationName( i18n( "Oxygen Demo" ) );
app.setWindowIcon( QIcon::fromTheme( QStringLiteral( "oxygen" ) ) );
DemoDialog dialog;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment