diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-07-31 08:34:32 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-07-31 08:45:07 +0200 |
commit | 409038e8cba0f4032cdcb4bc8f67138306aea168 (patch) | |
tree | f4cb5de4a815f597839135c663bd35776b73658b /src/linguist | |
parent | 61c0d8017044263dde21f1db57383f6d19f9eb03 (diff) |
Fix deprecation warnings
../../../shared/qtgradienteditor/qtgradientstopswidget.cpp:963:31: warning: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta() [-Wdeprecated-declarations]
helpviewer_qtb.cpp:280:18: warning: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta() [-Wdeprecated-declarations]
shared/previewmanager.cpp:626:84: warning: 'void QWidget::getContentsMargins(int*, int*, int*, int*) const' is deprecated: use contentsMargins() [-Wdeprecated-declarations]
mainwindow.cpp:2812:27: warning: ‘int QWheelEvent::delta() const’ is deprecated: Use angleDelta() [-Wdeprecated-declarations]
Change-Id: Ib6e675b08d1c4445a2333676432129b765da8d0e
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/linguist')
-rw-r--r-- | src/linguist/linguist/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linguist/linguist/mainwindow.cpp b/src/linguist/linguist/mainwindow.cpp index f443d25ea..235efd747 100644 --- a/src/linguist/linguist/mainwindow.cpp +++ b/src/linguist/linguist/mainwindow.cpp @@ -2809,7 +2809,7 @@ bool MainWindow::eventFilter(QObject *object, QEvent *event) } else if (event->type() == QEvent::Wheel) { QWheelEvent *we = static_cast<QWheelEvent *>(event); if (we->modifiers() & Qt::ControlModifier) { - if (we->delta() > 0) + if (we->angleDelta().y() > 0) m_messageEditor->increaseFontSize(); else m_messageEditor->decreaseFontSize(); |