Skip to content

Commit 7541a82

Browse files
committed
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.
1 parent 5b73cd1 commit 7541a82

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/FilterTableHeader.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ FilterTableHeader::FilterTableHeader(QTableView* parent) :
1717
// Make sure to not automatically resize the columns according to the contents
1818
setSectionResizeMode(QHeaderView::Interactive);
1919

20+
// Highlight column headers of selected cells to emulate spreadsheet behaviour
21+
setHighlightSections(true);
22+
2023
// Do some connects: Basically just resize and reposition the input widgets whenever anything changes
2124
connect(this, &FilterTableHeader::sectionResized, this, &FilterTableHeader::adjustPositions);
2225
connect(parent->horizontalScrollBar(), &QScrollBar::valueChanged, this, &FilterTableHeader::adjustPositions);

0 commit comments

Comments
 (0)