Skip to content

Commit 7b535f5

Browse files
committed
Fix Wheelevent->position compile issue Ubuntu 20.04
Wheelevent->position() is for Qt >= 5.13. For older version, like Qt 5.11 on Ubuntu 20.04, use Wheelvent->pos().
1 parent 7c449a2 commit 7b535f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libkoviz/bookview_table.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ void BookTableView::keyPressEvent(QKeyEvent *event)
592592

593593
void BookTableView::wheelEvent(QWheelEvent *e)
594594
{
595-
#if (QT_VERSION >= QT_VERSION_CHECK(5, 11, 0))
595+
#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
596596
QModelIndex tableVarIdx = indexAt(e->position().toPoint());
597597
#else
598598
QModelIndex tableVarIdx = indexAt(e->pos());

0 commit comments

Comments
 (0)