Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Enable per-pixel horizontal scrolling on attribute table
  • Loading branch information
github-actions[bot] authored and nirvn committed Apr 10, 2020
1 parent acdf279 commit 95ae4b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/attributetable/qgsattributetableview.cpp
Expand Up @@ -55,6 +55,8 @@ QgsAttributeTableView::QgsAttributeTableView( QWidget *parent )
setSortingEnabled( true ); // At this point no data is in the model yet, so actually nothing is sorted.
horizontalHeader()->setSortIndicatorShown( false ); // So hide the indicator to avoid confusion.

setHorizontalScrollMode( QAbstractItemView::ScrollPerPixel );

verticalHeader()->viewport()->installEventFilter( this );

connect( verticalHeader(), &QHeaderView::sectionPressed, this, [ = ]( int row ) { selectRow( row, true ); } );
Expand Down

0 comments on commit 95ae4b4

Please sign in to comment.