Qt: Disable -Werror for a deprecated declaration
Allow building with -Werror enable globally.
This commit is contained in:
parent
f6de88707c
commit
09b27e5636
|
@ -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);
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
#ifndef DETACHABLE_TABWIDGET_H
|
||||
#define DETACHABLE_TABWIDGET_H
|
||||
|
||||
#include <wireshark.h>
|
||||
|
||||
#include <QTabWidget>
|
||||
#include <QDialog>
|
||||
#include <QEvent>
|
||||
|
|
Loading…
Reference in New Issue