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

Method showMainWindow

syncthingwidgets/quick/quickui.cpp:361–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361bool QuickUI::showMainWindow()
362{
363#ifdef SYNCTHINGWIDGETS_GUI_QTQUICK_MODE_DESKTOP
364 if (m_mainWindow) {
365 m_mainWindow->show();
366 return true;
367 } else if ((m_mainWindow = qobject_cast<QQuickWindow *>(loadComponent("Main", "DesktopWindow")))) {
368 static_cast<QObject *>(m_mainWindow)->setParent(m_engine);
369 return true;
370 } else {
371 return false;
372 }
373#else
374 return false;
375#endif
376}
377
378bool QuickUI::showPage(QAnyStringView uri, QAnyStringView typeName, const QVariantMap &initialProperties, QQuickItem *stackView)
379{

Callers 1

showQtQuickGuiMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected