Commit 51d233b2 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

try to use Breeze style on mac and win, like we patch it in craft

parent 35d376a0
......@@ -96,6 +96,14 @@ int main(int argc, char **argv)
QApplication app(argc, argv);
#endif
/**
* For Windows and macOS: use Breeze if available
* Of all tested styles that works the best for us
*/
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
QApplication::setStyle(QStringLiteral("breeze"));
#endif
/**
* Enforce application name even if the executable is renamed
*/
......
......@@ -84,6 +84,14 @@ extern "C" Q_DECL_EXPORT int main(int argc, char **argv)
QApplication app(argc, argv);
app.setApplicationName(QStringLiteral("kwrite"));
/**
* For Windows and macOS: use Breeze if available
* Of all tested styles that works the best for us
*/
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
QApplication::setStyle(QStringLiteral("breeze"));
#endif
/**
* Enable crash handling through KCrash.
*/
......
Markdown is supported
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