Skip to content

Commit 93ab4b7

Browse files
gui: Convert delta() to angleDelta()
Signed-off-by: Anton Blanchard <[email protected]>
1 parent 6ef30ce commit 93ab4b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/src/clockWidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -923,9 +923,9 @@ void ClockTreeView::wheelEvent(QWheelEvent* event)
923923
const auto anchor = transformationAnchor();
924924
setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
925925

926-
if (event->delta() > 0) {
926+
if (event->angleDelta().y() > 0) {
927927
scale(factor, factor);
928-
} else if (event->delta() < 0) {
928+
} else if (event->angleDelta().y() < 0) {
929929
scale(1.0 / factor, 1.0 / factor);
930930
}
931931

0 commit comments

Comments
 (0)