on windows use QWidget native platform style
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 28 Aug 2024 09:06:35 +0000 (11:06 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Wed, 28 Aug 2024 09:11:09 +0000 (09:11 +0000)
will make all QWidget based user interface look more native

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/main.cpp

index e1814b9ccd1172644609fd42736dc5ab5999cdd4..14b55dab7dc35169f5ca9ac423b08f060bafa4cc 100644 (file)
@@ -74,16 +74,6 @@ int main(int argc, char **argv)
 
     OCC::Application app(argc, argv);
 
-#ifdef Q_OS_WIN
-    // The Windows style still has pixelated elements with Qt 5.6,
-    // it's recommended to use the Fusion style in this case, even
-    // though it looks slightly less native. Check here after the
-    // QApplication was constructed, but before any QWidget is
-    // constructed.
-    if (app.devicePixelRatio() > 1)
-        QApplication::setStyle(QStringLiteral("fusion"));
-#endif // Q_OS_WIN
-
 #ifndef Q_OS_WIN
     signal(SIGPIPE, SIG_IGN);
 #endif