mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
[view] improvement: able to define min width for form component
This commit is contained in:
@@ -713,6 +713,9 @@ class FormQt(QGroupBox):
|
||||
self.i18n = i18n
|
||||
self.setLayout(QFormLayout())
|
||||
|
||||
if model.min_width and model.min_width > 0:
|
||||
self.setMinimumWidth(model.min_width)
|
||||
|
||||
if model.spaces:
|
||||
self.layout().addRow(QLabel(), QLabel())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user