Skip to content

Commit

Permalink
porting: from deprecated QWheelEvent.delta
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Apr 26, 2024
1 parent 2568519 commit 11b2300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/tikzpreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ void TikzPreview::setBackgroundColor(QColor color)
void TikzPreview::wheelEvent(QWheelEvent *event)
{
if (event->modifiers() == Qt::ControlModifier) {
if (event->delta() > 0)
if (event->angleDelta().y() > 0)
zoomIn();
else
zoomOut();
Expand Down

0 comments on commit 11b2300

Please sign in to comment.