Qt::MidButton is deprecated. Use Qt::MiddleButton instead.

This commit is contained in:
Mateusz Skowroński
2021-04-04 08:59:24 +02:00
committed by wwmayer
parent d4acb6e489
commit 5032a8e31f
4 changed files with 6 additions and 6 deletions

View File

@@ -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());