MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / configureApplicationStyle

Function configureApplicationStyle

app/src/main.cpp:59–69  ·  view source on GitHub ↗

* @brief Applies the window icon (non-macOS) and Fusion style to the running QApplication. */

Source from the content-addressed store, hash-verified

57 * @brief Applies the window icon (non-macOS) and Fusion style to the running QApplication.
58 */
59static 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.

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected