Qt::MidButton is deprecated. Use Qt::MiddleButton instead.
This commit is contained in:
committed by
wwmayer
parent
d4acb6e489
commit
5032a8e31f
@@ -247,7 +247,7 @@ WebView::WebView(QWidget *parent)
|
||||
void WebView::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
#ifdef QTWEBKIT
|
||||
if (event->button() == Qt::MidButton) {
|
||||
if (event->button() == Qt::MiddleButton) {
|
||||
QWebHitTestResult r = page()->mainFrame()->hitTestContent(event->pos());
|
||||
if (!r.linkUrl().isEmpty()) {
|
||||
openLinkInNewWindow(r.linkUrl());
|
||||
|
||||
Reference in New Issue
Block a user