From 46df3abcf15619e7ce6c222e97cd0ebbca547dd4 Mon Sep 17 00:00:00 2001 From: Keith Vetter Date: Wed, 30 Oct 2024 12:13:55 -0500 Subject: [PATCH] Change MidButton to MiddleButton due to Qt deprecation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This came from a warning while building on Ubuntu: bookidxview.cpp:7:31: warning: ‘Qt::MidButton’ is deprecated: MidButton is deprecated. Use MiddleButton instead 7 | _buttonRubberBandZoom(Qt::MidButton), --- libkoviz/bookidxview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libkoviz/bookidxview.cpp b/libkoviz/bookidxview.cpp index 68ca6c9..8252493 100644 --- a/libkoviz/bookidxview.cpp +++ b/libkoviz/bookidxview.cpp @@ -4,7 +4,7 @@ BookIdxView::BookIdxView(QWidget *parent) : QAbstractItemView(parent), _curvesView(0), _buttonSelectAndPan(Qt::LeftButton), - _buttonRubberBandZoom(Qt::MidButton), + _buttonRubberBandZoom(Qt::MiddleButton), _buttonResetView(Qt::RightButton) { }