Skip to content

Commit

Permalink
Fix Wheelevent->position compile issue Ubuntu 20.04
Browse files Browse the repository at this point in the history
Wheelevent->position() is for Qt >= 5.13.
For older version, like Qt 5.11 on Ubuntu 20.04,
use Wheelvent->pos().
  • Loading branch information
keithvetter committed Nov 25, 2024
1 parent 7c449a2 commit 7b535f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libkoviz/bookview_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ void BookTableView::keyPressEvent(QKeyEvent *event)

void BookTableView::wheelEvent(QWheelEvent *e)
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 11, 0))
#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
QModelIndex tableVarIdx = indexAt(e->position().toPoint());
#else
QModelIndex tableVarIdx = indexAt(e->pos());
Expand Down

0 comments on commit 7b535f5

Please sign in to comment.