Remove enforced custom QtQuickStyle

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
feature/native-theming
Claudio Cambra 2024-05-13 10:41:10 +02:00
parent 284094c181
commit 7331c8a3a5
No known key found for this signature in database
GPG Key ID: C839200C384636B0
1 changed files with 0 additions and 11 deletions

View File

@ -70,20 +70,9 @@ int main(int argc, char **argv)
QSurfaceFormat::setDefaultFormat(surfaceFormat);
QQuickWindow::setTextRenderType(QQuickWindow::NativeTextRendering);
QQuickStyle::setStyle(QStringLiteral("Fusion"));
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