Skip to content

Commit

Permalink
Change MidButton to MiddleButton due to Qt deprecation
Browse files Browse the repository at this point in the history
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),
  • Loading branch information
keithvetter committed Oct 30, 2024
1 parent ba6c430 commit 46df3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libkoviz/bookidxview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ BookIdxView::BookIdxView(QWidget *parent) :
QAbstractItemView(parent),
_curvesView(0),
_buttonSelectAndPan(Qt::LeftButton),
_buttonRubberBandZoom(Qt::MidButton),
_buttonRubberBandZoom(Qt::MiddleButton),
_buttonResetView(Qt::RightButton)
{
}
Expand Down

0 comments on commit 46df3ab

Please sign in to comment.