Skip to content

Commit

Permalink
Address review: Make sure the language combobox has the same width as…
Browse files Browse the repository at this point in the history
… the project optimization combobox (project creation page)
  • Loading branch information
gacarrillor committed Oct 30, 2024
1 parent 7aa03b1 commit be01c6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions QgisModelBaker/gui/workflow_wizard/project_creation_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ def _update_translation_combo(self):

self.translation_combo.addItem(self.tr("Original model language"), "__")

# Synchronize length of both comboboxes
self.translation_combo.setMinimumSize(self.optimize_combo.minimumSizeHint())

def _complete_completer(self):
if self.topping_line_edit.hasFocus() and self.topping_line_edit.completer():
if not self.topping_line_edit.text():
Expand Down
3 changes: 3 additions & 0 deletions QgisModelBaker/ui/workflow_wizard/project_creation.ui
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ Select the language in which the QGIS project is to be set up.</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContents</enum>
</property>
<item>
<property name="text">
<string>English</string>
Expand Down

0 comments on commit be01c6a

Please sign in to comment.