Skip to content

Commit

Permalink
Fixes for Qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
BatchDrake committed Mar 25, 2024
1 parent 607ae4c commit 95f8e22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Waveform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,20 +458,20 @@ Waveform::mouseMoveEvent(QMouseEvent *event)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
m_currMouseX = event->position().x();
#else
currMouseX = event->x();
m_currMouseX = event->x();
#endif

if (m_frequencyDragging)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
scrollHorizontal(m_clickX, event->position().x());
#else
scrollHorizontal(clickX, event->x());
scrollHorizontal(m_clickX, event->x());
#endif
else if (m_valueDragging)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
scrollVertical(m_clickY, event->position().y());
#else
scrollVertical(clickY, event->y());
scrollVertical(m_clickY, event->y());
#endif
else if (m_hSelDragging)
selectHorizontal(
Expand Down

0 comments on commit 95f8e22

Please sign in to comment.