MCPcopy Create free account
hub / github.com/KDE/kdevelop / triggerMainWindowActionMenuById

Method triggerMainWindowActionMenuById

plugins/welcomepage/welcomepageview.cpp:105–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void WelcomePageWidget::triggerMainWindowActionMenuById(const QString& id)
106{
107 auto* const action = mainWindowActionById(id);
108 if (!action) {
109 qCWarning(PLUGIN_WELCOMEPAGE) << "Action not found in mainwindow:" << id;
110 return;
111 }
112 auto* const menu = action->menu();
113 if (!menu) {
114 qCWarning(PLUGIN_WELCOMEPAGE) << "Action has no menu:" << id;
115 return;
116 }
117
118 menu->popup(QCursor::pos());
119}
120
121void WelcomePageWidget::onWelcomeTextLinkClicked(const QString& link)
122{

Callers

nothing calls this directly

Calls 1

menuMethod · 0.80

Tested by

no test coverage detected