Qt: Disable -Werror for a deprecated declaration

Allow building with -Werror enable globally.
This commit is contained in:
João Valverde 2022-10-04 16:29:46 +01:00
parent f6de88707c
commit 09b27e5636
2 changed files with 4 additions and 0 deletions

View File

@ -155,7 +155,9 @@ void DragDropTabBar::mouseMoveEvent(QMouseEvent *event)
_dragInitiated = true;
if ((event->buttons() & Qt::LeftButton) && _dragInitiated) {
DIAG_WARN(deprecated-declarations)
QMouseEvent * finishMouseMove = new QMouseEvent(QEvent::MouseMove, event->pos(), Qt::NoButton, Qt::NoButton, Qt::NoModifier);
DIAG_ON(deprecated-declarations)
QTabBar::mouseMoveEvent(finishMouseMove);
QDrag * drag = new QDrag(this);

View File

@ -10,6 +10,8 @@
#ifndef DETACHABLE_TABWIDGET_H
#define DETACHABLE_TABWIDGET_H
#include <wireshark.h>
#include <QTabWidget>
#include <QDialog>
#include <QEvent>