Skip to content

Commit

Permalink
Merge pull request #5815 from markotoplak/fix-owfile-min-size
Browse files Browse the repository at this point in the history
[FIX] File: remove some resizing limits
  • Loading branch information
ajdapretnar authored Jan 31, 2022
2 parents dfd2734 + 4ba218d commit ef36780
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Orange/widgets/data/owfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ def package(w):
layout.addWidget(rb_button, 0, 0, Qt.AlignVCenter)

box = gui.hBox(None, addToLayout=False, margin=0)
box.setSizePolicy(Policy.MinimumExpanding, Policy.Fixed)
self.file_combo.setSizePolicy(Policy.MinimumExpanding, Policy.Fixed)
box.setSizePolicy(Policy.Expanding, Policy.Fixed)
self.file_combo.setSizePolicy(Policy.Expanding, Policy.Fixed)
self.file_combo.setMinimumSize(QSize(100, 1))
self.file_combo.activated[int].connect(self.select_file)
box.layout().addWidget(self.file_combo)
layout.addWidget(box, 0, 1)
Expand All @@ -214,8 +215,8 @@ def package(w):
self.sheet_box = gui.hBox(None, addToLayout=False, margin=0)
self.sheet_combo = QComboBox()
self.sheet_combo.activated[str].connect(self.select_sheet)
self.sheet_combo.setSizePolicy(
Policy.MinimumExpanding, Policy.Fixed)
self.sheet_combo.setSizePolicy(Policy.Expanding, Policy.Fixed)
self.sheet_combo.setMinimumSize(QSize(50, 1))
self.sheet_label = QLabel()
self.sheet_label.setText('Sheet')
self.sheet_label.setSizePolicy(
Expand Down Expand Up @@ -254,9 +255,10 @@ def package(w):
gui.widgetBox(self.controlArea, orientation=layout, box='File Type')

box = gui.hBox(None, addToLayout=False, margin=0)
box.setSizePolicy(Policy.MinimumExpanding, Policy.Fixed)
box.setSizePolicy(Policy.Expanding, Policy.Fixed)
self.reader_combo = QComboBox(self)
self.reader_combo.setSizePolicy(Policy.MinimumExpanding, Policy.Fixed)
self.reader_combo.setSizePolicy(Policy.Expanding, Policy.Fixed)
self.reader_combo.setMinimumSize(QSize(100, 1))
self.reader_combo.activated[int].connect(self.select_reader)

box.layout().addWidget(self.reader_combo)
Expand Down

0 comments on commit ef36780

Please sign in to comment.