| 103 | } |
| 104 | |
| 105 | void 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 | |
| 121 | void WelcomePageWidget::onWelcomeTextLinkClicked(const QString& link) |
| 122 | { |