MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / CreateWebActionTrigger

Method CreateWebActionTrigger

Plugins/WebBrowser/FrmWebView.cpp:219–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void CFrmWebView::CreateWebActionTrigger(QWebEnginePage *page, QWebEnginePage::WebAction webAction)
220{
221 QAction *action = page->action(webAction);
222#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
223 connect(action, &QAction::enabledChanged,
224 [this, action, webAction](bool enabled) {
225 qDebug(log) << "webAction:" << webAction << enabled;
226 emit sigWebActionEnabledChanged(webAction, enabled);
227 });
228#else
229 connect(action, &QAction::changed, [this, action, webAction]{
230 emit sigWebActionEnabledChanged(webAction, action->isEnabled());
231 });
232#endif
233}
234
235void CFrmWebView::contextMenuEvent(QContextMenuEvent *event)
236{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected