Commit a34736f3 authored by Eike Ziller's avatar Eike Ziller

QtWebKit HelpViewer: Fix that "Open in New Page" was visible where it shouldn't

Change-Id: I707f348965cb66085e9e9b7b47613c65974a5f55
Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>
parent 8f39e05e
......@@ -294,11 +294,6 @@ void QtWebKitHelpWidget::scaleDown()
setZoomFactor(qMax(qreal(0.0), zoomFactor() - qreal(0.1)));
}
void QtWebKitHelpWidget::setOpenInNewPageActionVisible(bool visible)
{
m_openInNewPageActionVisible = visible;
}
// -- public slots
void QtWebKitHelpWidget::copy()
......@@ -567,7 +562,7 @@ void QtWebKitHelpViewer::addForwardHistoryItems(QMenu *forwardMenu)
void QtWebKitHelpViewer::setOpenInNewPageActionVisible(bool visible)
{
m_webView->setOpenInNewPageActionVisible(visible);
m_webView->pageAction(QWebPage::OpenLinkInNewWindow)->setVisible(visible);
}
bool QtWebKitHelpViewer::findText(const QString &text, FindFlags flags,
......
......@@ -110,8 +110,6 @@ public:
void scaleUp();
void scaleDown();
void setOpenInNewPageActionVisible(bool visible);
public slots:
void copy();
......@@ -134,7 +132,6 @@ private:
bool eventFilter(QObject *obj, QEvent *event);
QtWebKitHelpViewer *m_parent;
bool m_openInNewPageActionVisible;
};
class HelpPage : public QWebPage
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment