summaryrefslogtreecommitdiff
path: root/examples/triage/byte.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/triage/byte.cpp')
-rw-r--r--examples/triage/byte.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/triage/byte.cpp b/examples/triage/byte.cpp
index db614dec..69305430 100644
--- a/examples/triage/byte.cpp
+++ b/examples/triage/byte.cpp
@@ -692,9 +692,10 @@ void ByteView::paintEvent(QPaintEvent* event)
void ByteView::wheelEvent(QWheelEvent* event)
{
- if (event->orientation() == Qt::Horizontal)
+ if (event->angleDelta().x()) // ignore horizontal scrolling
return;
- m_wheelDelta -= event->delta();
+
+ m_wheelDelta -= event->angleDelta().y();
if ((m_wheelDelta <= -40) || (m_wheelDelta >= 40))
{
int lines = m_wheelDelta / 40;