Skip to content

Commit

Permalink
bug fix: results table header has correct height on any platform
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgang committed Mar 2, 2018
1 parent a158312 commit 532abce
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions mofi/mofi.py
Expand Up @@ -656,10 +656,6 @@ def __init__(self, parent=None):
header.setDefaultSectionSize(80)
header.setHighlightSections(True)
header.setMinimumSectionSize(0)
if (QApplication.style().metaObject()
.className() == "QWindowsVistaStyle"):
header.setFixedHeight(50)
header._vertical_padding = 8
tree_widget.setHeader(header)

# statistics table
Expand Down Expand Up @@ -2405,14 +2401,6 @@ def _fill_results_table(self, stage, tree_widget, cols, df_hit):
QHeaderView.ResizeToContents)
tree_widget.header().setSectionResizeMode(0, QHeaderView.Fixed)
tree_widget.header().setStretchLastSection(False)
tree_widget.header().setStyleSheet(
"""
QHeaderView::section {
padding-top: 2px;
padding-bottom: 2px;
padding-left: 12px;
}
""")
tree_widget.setUpdatesEnabled(True)

# create filters
Expand Down

0 comments on commit 532abce

Please sign in to comment.