示例#1
0
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);
    }
}
示例#2
0
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);
}
示例#3
0
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;
}
示例#4
0
文件: itemweb.cpp 项目: yarod39/CopyQ
void ItemWeb::mouseReleaseEvent(QMouseEvent *e)
{
    if ( property("copyOnMouseUp").toBool() ) {
        setProperty("copyOnMouseUp", false);
        if ( hasSelection() )
            triggerPageAction(QWebPage::Copy);
    } else {
        QWebView::mouseReleaseEvent(e);
    }
}
示例#5
0
void WebView::reloadBypassCache()
{
    triggerPageAction(QWebPage::ReloadAndBypassCache);
}
示例#6
0
void WebView::editSelectAll()
{
    triggerPageAction(QWebPage::SelectAll);
}
示例#7
0
void WebView::editPaste()
{
    triggerPageAction(QWebPage::Paste);
}
示例#8
0
void WebView::editCopy()
{
    triggerPageAction(QWebPage::Copy);
}
示例#9
0
void WebView::editCut()
{
    triggerPageAction(QWebPage::Cut);
}
示例#10
0
void ViewWindow::clipSelectAll()
{
	triggerPageAction( QWebPage::SelectAll );
}
示例#11
0
void StyleViewer::onShortcutActivated()
{
    triggerPageAction(QWebPage::Copy);
}
示例#12
0
void
body_view::copy()
{
  triggerPageAction(QWebPage::Copy);
}
示例#13
0
void PopupWebView::inspectElement()
{
    triggerPageAction(QWebPage::InspectElement);
}
示例#14
0
void TabbedWebView::inspectElement()
{
    m_webTab->showWebInspector();
    triggerPageAction(QWebPage::InspectElement);
}
示例#15
0
void ViewWindow::clipCopy()
{
	triggerPageAction( QWebPage::Copy );
}
示例#16
0
void WebView::copyImageToClipboard()
{
    triggerPageAction(QWebPage::CopyImageToClipboard);
}
示例#17
0
void WebView::editUndo()
{
    triggerPageAction(QWebPage::Undo);
}
示例#18
0
void WebView::editRedo()
{
    triggerPageAction(QWebPage::Redo);
}
示例#19
0
void TabbedWebView::inspectElement()
{
    p_QupZilla->showWebInspector(false);
    triggerPageAction(QWebPage::InspectElement);
}
示例#20
0
void ChatView::copy()
{
  triggerPageAction(QWebPage::Copy);
}