Changeset View
Changeset View
Standalone View
Standalone View
src/main.cpp
| Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 67 | { | |||
|---|---|---|---|---|---|
| 70 | // QApplication takes/removes the Qt specific arguments that are incompatible. | 70 | // QApplication takes/removes the Qt specific arguments that are incompatible. | ||
| 71 | KDBusService::StartupOption startupOption = KDBusService::Unique; | 71 | KDBusService::StartupOption startupOption = KDBusService::Unique; | ||
| 72 | if (shouldUseNewProcess(argc, argv)) { | 72 | if (shouldUseNewProcess(argc, argv)) { | ||
| 73 | startupOption = KDBusService::Multiple; | 73 | startupOption = KDBusService::Multiple; | ||
| 74 | } else { | 74 | } else { | ||
| 75 | needToDeleteQApplication = true; | 75 | needToDeleteQApplication = true; | ||
| 76 | } | 76 | } | ||
| 77 | 77 | | |||
| 78 | #if defined(Q_OS_LINUX) | ||||
| 79 | // Workaround for https://bugreports.qt.io/browse/QTBUG-48344 | ||||
| 80 | // See also https://bugs.kde.org/show_bug.cgi?id=230184 | ||||
| 81 | // The Qt glib event loop doesn't let timers deliver events if there are a | ||||
| 82 | // lot of other events. | ||||
| 83 | qputenv("QT_NO_GLIB", "1"); | ||||
| 84 | #endif | ||||
| 85 | | ||||
| 78 | auto app = new QApplication(argc, argv); | 86 | auto app = new QApplication(argc, argv); | ||
| 79 | 87 | | |||
| 80 | // enable high dpi support | 88 | // enable high dpi support | ||
| 81 | app->setAttribute(Qt::AA_UseHighDpiPixmaps, true); | 89 | app->setAttribute(Qt::AA_UseHighDpiPixmaps, true); | ||
| 82 | 90 | | |||
| 83 | #if defined(Q_OS_MACOS) | 91 | #if defined(Q_OS_MACOS) | ||
| 84 | // this ensures that Ctrl and Meta are not swapped, so CTRL-C and friends | 92 | // this ensures that Ctrl and Meta are not swapped, so CTRL-C and friends | ||
| 85 | // will work correctly in the terminal | 93 | // will work correctly in the terminal | ||
| ▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines | |||||