Skip to content

Commit 9e2f8e5

Browse files
committed
Fix for table header filters under Ubuntu Linux 18.04 and Qt 5.9.5
The filter box was clipped one or two pixels for both the follow-desktop mode and the dark-style mode. This fixes it, but not sure if it will fix the problem reported in issue #1493 in Windows.
1 parent 0adb0af commit 9e2f8e5

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
@@ -80,6 +80,9 @@ void FilterTableHeader::adjustPositions()
8080
w->move(sectionPosition(i) - offset(), w->sizeHint().height() + 2); // The two adds some extra space between the header label and the input widget
8181
w->resize(sectionSize(i), w->sizeHint().height());
8282
}
83+
// And finally add that extra space to the header so the filter box is not clipped.
84+
if(filterWidgets.size() > 0)
85+
setMinimumSize(sizeHint().width(), sizeHint().height() + 2);
8386
}
8487

8588
void FilterTableHeader::inputChanged(const QString& new_value)

0 commit comments

Comments
 (0)