Skip to content

Commit

Permalink
Merge pull request #7043 from nextcloud/backport/7042/stable-3.14
Browse files Browse the repository at this point in the history
[stable-3.14] on windows use QWidget native platform style
  • Loading branch information
mgallien authored Aug 28, 2024
2 parents a274651 + bf344fe commit 84c8cc5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/gui/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84c8cc5

Please sign in to comment.