MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / create

Method create

syncthingwidgets/quick/quickui.cpp:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104QuickUI *QuickUI::create(QQmlEngine *qmlEngine, QJSEngine *engine)
105{
106 auto *const quickUI = dataObjectFromProperty<QuickUI>(qmlEngine, engine);
107 if (qmlEngine) {
108 auto *const imageProvider = new QtForkAwesome::QuickImageProvider(Data::IconManager::instance().forkAwesomeRenderer());
109 connect(quickUI->m_imageProvider = imageProvider, &QObject::destroyed, quickUI, [quickUI]() { quickUI->m_imageProvider = nullptr; });
110 qmlEngine->addImageProvider(QStringLiteral("fa"), imageProvider);
111 }
112 return quickUI;
113}
114
115/*!
116 * \brief Returns a space-separated list of available Qt Quick GUI modes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected