void HelpWindowWidget::mouseReleaseEvent(QMouseEvent *pEvent) { // Handle some special mouse buttons for navigating the help if (pEvent->button() == Qt::XButton1) { // Special mouse button #1 which is used to go to the previous help // document triggerPageAction(QWebPage::Back); // Accept the event pEvent->accept(); } else if (pEvent->button() == Qt::XButton2) { // Special mouse button #2 which is used to go to the next help document triggerPageAction(QWebPage::Forward); // Accept the event pEvent->accept(); } else { // Something else, so use the default handling of the event OpenCOR::WebViewerWidget::WebViewerWidget::mouseReleaseEvent(pEvent); } }
void HelpViewer::mouseReleaseEvent(QMouseEvent *e) { if (e->button() == Qt::XButton1) { triggerPageAction(QWebPage::Back); return; } if (e->button() == Qt::XButton2) { triggerPageAction(QWebPage::Forward); return; } QWebView::mouseReleaseEvent(e); }
bool HelpWebView::handleForwardBackwardMouseButtons(QMouseEvent *e) { if (e->button() == Qt::XButton1) { triggerPageAction(QWebPage::Back); return true; } if (e->button() == Qt::XButton2) { triggerPageAction(QWebPage::Forward); return true; } return false; }
void ItemWeb::mouseReleaseEvent(QMouseEvent *e) { if ( property("copyOnMouseUp").toBool() ) { setProperty("copyOnMouseUp", false); if ( hasSelection() ) triggerPageAction(QWebPage::Copy); } else { QWebView::mouseReleaseEvent(e); } }
void WebView::reloadBypassCache() { triggerPageAction(QWebPage::ReloadAndBypassCache); }
void WebView::editSelectAll() { triggerPageAction(QWebPage::SelectAll); }
void WebView::editPaste() { triggerPageAction(QWebPage::Paste); }
void WebView::editCopy() { triggerPageAction(QWebPage::Copy); }
void WebView::editCut() { triggerPageAction(QWebPage::Cut); }
void ViewWindow::clipSelectAll() { triggerPageAction( QWebPage::SelectAll ); }
void StyleViewer::onShortcutActivated() { triggerPageAction(QWebPage::Copy); }
void body_view::copy() { triggerPageAction(QWebPage::Copy); }
void PopupWebView::inspectElement() { triggerPageAction(QWebPage::InspectElement); }
void TabbedWebView::inspectElement() { m_webTab->showWebInspector(); triggerPageAction(QWebPage::InspectElement); }
void ViewWindow::clipCopy() { triggerPageAction( QWebPage::Copy ); }
void WebView::copyImageToClipboard() { triggerPageAction(QWebPage::CopyImageToClipboard); }
void WebView::editUndo() { triggerPageAction(QWebPage::Undo); }
void WebView::editRedo() { triggerPageAction(QWebPage::Redo); }
void TabbedWebView::inspectElement() { p_QupZilla->showWebInspector(false); triggerPageAction(QWebPage::InspectElement); }
void ChatView::copy() { triggerPageAction(QWebPage::Copy); }