Skip to content

Commit

Permalink
owheatmap: Remove unnecessary row constraints
Browse files Browse the repository at this point in the history
Prior to Qt 5.4 hidden QGraphicsWidgets retained their size in
the layout.
  • Loading branch information
ales-erjavec committed Feb 4, 2020
1 parent f749c2b commit a63c8c1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Orange/widgets/visualize/owheatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1505,20 +1505,8 @@ def update_column_annotations(self):

for labelslist in self.col_annotation_widgets_top:
labelslist.setVisible(show_top)

TopLabelsRow = 2
Row0 = 3
BottomLabelsRow = Row0 + len(self.heatmapparts.rows)

layout = self.heatmap_scene.widget.layout()
layout.setRowMaximumHeight(TopLabelsRow, FLT_MAX if show_top else 0)
layout.setRowSpacing(TopLabelsRow, -1 if show_top else 0)

for labelslist in self.col_annotation_widgets_bottom:
labelslist.setVisible(show_bottom)

layout.setRowMaximumHeight(BottomLabelsRow, FLT_MAX if show_top else 0)

self.__fixup_grid_layout()

def __select_by_cluster(self, item, dendrogramindex):
Expand Down

0 comments on commit a63c8c1

Please sign in to comment.