mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Highlight column headers to emulate spreadsheet behaviour
The column headers contained in a selection are highlighted for consistency to the row headers and to emulated spreadsheet behaviour.
This commit is contained in:
@@ -17,6 +17,9 @@ FilterTableHeader::FilterTableHeader(QTableView* parent) :
|
||||
// Make sure to not automatically resize the columns according to the contents
|
||||
setSectionResizeMode(QHeaderView::Interactive);
|
||||
|
||||
// Highlight column headers of selected cells to emulate spreadsheet behaviour
|
||||
setHighlightSections(true);
|
||||
|
||||
// Do some connects: Basically just resize and reposition the input widgets whenever anything changes
|
||||
connect(this, &FilterTableHeader::sectionResized, this, &FilterTableHeader::adjustPositions);
|
||||
connect(parent->horizontalScrollBar(), &QScrollBar::valueChanged, this, &FilterTableHeader::adjustPositions);
|
||||
|
||||
Reference in New Issue
Block a user