| 217 | } |
| 218 | |
| 219 | void 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 | |
| 235 | void CFrmWebView::contextMenuEvent(QContextMenuEvent *event) |
| 236 | { |
nothing calls this directly
no outgoing calls
no test coverage detected