summaryrefslogtreecommitdiffstats
path: root/src/linguist
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-07-31 08:34:32 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-07-31 08:45:07 +0200
commit409038e8cba0f4032cdcb4bc8f67138306aea168 (patch)
treef4cb5de4a815f597839135c663bd35776b73658b /src/linguist
parent61c0d8017044263dde21f1db57383f6d19f9eb03 (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.cpp2
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();