From 7b535f55d8af8ba1f7c61868e1ec0e2914f40f21 Mon Sep 17 00:00:00 2001 From: Keith Vetter Date: Mon, 25 Nov 2024 10:47:46 -0600 Subject: [PATCH] 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(). --- libkoviz/bookview_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libkoviz/bookview_table.cpp b/libkoviz/bookview_table.cpp index bd49015..2114d73 100644 --- a/libkoviz/bookview_table.cpp +++ b/libkoviz/bookview_table.cpp @@ -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());