fix deprecated warning int QWheelEvent::delta() const

Use angleDelta() instead
and .y();
This commit is contained in:
Simon De Backer
2020-06-14 22:30:26 +02:00
committed by Laurent Trinques
parent 2241343fba
commit ca2e737df3

View File

@@ -511,7 +511,7 @@ qreal TitleBlockTemplateView::templateHeight() const {
void TitleBlockTemplateView::wheelEvent(QWheelEvent *e) {
// si la touche Ctrl est enfoncee, on zoome / dezoome
if (e -> modifiers() & Qt::ControlModifier) {
if (e -> delta() > 0) {
if (e -> angleDelta().y() > 0) {
zoomIn();
} else {
zoomOut();