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

Method invokeWidgetFunction

syncthingwidgets/quick/quickui.cpp:476–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474#ifdef SYNCTHINGWIDGETS_GUI_QTQUICK_MODE_DESKTOP
475template <typename ReturnArg, typename... Args>
476bool QuickUI::invokeWidgetFunction(const char *member, QTemplatedMetaMethodReturnArgument<ReturnArg> r, Args &&...args)
477{
478 if (auto *const widget = m_engine->singletonInstance<QObject *>("Tray", "TrayWidget")) {
479 return QMetaObject::invokeMethod(widget, member, Qt::DirectConnection, r, std::forward<Args>(args)...);
480 }
481 return false;
482}
483#endif
484#endif
485

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected