From 6d7b9d5ca26d7fe4a7d5e9c284c68ad214d3291e Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 7 Sep 2023 10:00:42 +1000 Subject: [PATCH] Lint --- koordinates/gui/dataset_browser_items.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/koordinates/gui/dataset_browser_items.py b/koordinates/gui/dataset_browser_items.py index 6e0399e..d8b2541 100644 --- a/koordinates/gui/dataset_browser_items.py +++ b/koordinates/gui/dataset_browser_items.py @@ -209,11 +209,6 @@ def has_narrow_cards(self) -> bool: def minimumSize(self): return QSize(150, DatasetItemWidgetBase.CARD_HEIGHT) - if self.force_narrow_cards: - return QSize(330, DatasetItemWidgetBase.CARD_HEIGHT_TALL) - else: - return QSize(150, DatasetItemWidgetBase.CARD_HEIGHT) - def setGeometry(self, rect): super().setGeometry(rect) @@ -367,7 +362,12 @@ def __init__(self, self.setLayout(self.dataset_layout) def set_column_count(self, count: int): - #if self.column_count >= 1 and use_narrow_cards == is_using_narrow_cards: + """ + Sets the number of table columns in the parent table, so that + the item can rearrange layout accordingly + """ + # if self.column_count >= 1 and \ + # use_narrow_cards == is_using_narrow_cards: # return self.column_count = count