* @brief Applies the window icon (non-macOS) and Fusion style to the running QApplication. */
| 57 | * @brief Applies the window icon (non-macOS) and Fusion style to the running QApplication. |
| 58 | */ |
| 59 | static void configureApplicationStyle(QApplication& app) |
| 60 | { |
| 61 | #if !defined(Q_OS_MAC) |
| 62 | QIcon appIcon(QStringLiteral(":/logo/icon.svg")); |
| 63 | if (!appIcon.isNull()) |
| 64 | app.setWindowIcon(appIcon); |
| 65 | #endif |
| 66 | |
| 67 | app.setStyle(QStyleFactory::create("Fusion")); |
| 68 | QQuickStyle::setStyle("Fusion"); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * @brief Constructs and initializes the ModuleManager, exposing CLI flags to QML. |