ui: Fix compilation with Qt version < 5.6

This commit is contained in:
Oleg Shparber
2018-01-07 01:02:53 +02:00
parent 4b65cb29da
commit 9e86fcdfd5
+4 -1
View File
@@ -102,6 +102,7 @@ QWebView *WebView::createWindow(QWebPage::WebWindowType type)
void WebView::contextMenuEvent(QContextMenuEvent *event)
{
#if QT_VERSION >= 0x050600
const QWebHitTestResult hitTestResult = hitTestContent(event->pos());
// Return standard menu for input fields.
@@ -158,7 +159,9 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
}
m_contextMenu->popup(event->globalPos());
#else
QWebView::contextMenuEvent(event);
#endif
}
void WebView::mousePressEvent(QMouseEvent *event)