Qt: Set Packet List scrollbar page step only on macOS

Only set the Packet List scrollbar page step to be equal to the
height of the scrollbar when running on macOS. Qt on Linux and
Windows behaves different.
This commit is contained in:
Stig Bjørlykke 2022-03-10 15:08:14 +01:00
parent 80d0283341
commit 2c4165fe5a
1 changed files with 2 additions and 0 deletions

View File

@ -145,7 +145,9 @@ void OverlayScrollBar::resizeEvent(QResizeEvent *event)
child_sb_.move(packet_map_width_, 0);
child_sb_.resize(child_sb_.sizeHint().width(), height());
#ifdef Q_OS_MAC
child_sb_.setPageStep(height());
#endif
}
void OverlayScrollBar::paintEvent(QPaintEvent *event)