mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Fix incorrect scrollbar size on macOS with Qt5 (#810)
Building the project with Qt5 on macOS and browsing a huge table, the scrollbar height was smaller than necessary. Scrolling to the end, some rows were not showing up. This was caused by the default vertical scroll mode, which is set to ScrollPerPixel on macOS, and ScrollPerItem on other systems.
This commit is contained in:
committed by
Justin Clift
parent
969e263e5b
commit
e5bca9d2db
@@ -64,6 +64,7 @@ ExtendedTableWidget::ExtendedTableWidget(QWidget* parent) :
|
||||
QTableView(parent)
|
||||
{
|
||||
setHorizontalScrollMode(ExtendedTableWidget::ScrollPerPixel);
|
||||
setVerticalScrollMode(ExtendedTableWidget::ScrollPerItem);
|
||||
|
||||
connect(verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(vscrollbarChanged(int)));
|
||||
connect(this, SIGNAL(clicked(QModelIndex)), this, SLOT(cellClicked(QModelIndex)));
|
||||
|
||||
Reference in New Issue
Block a user