Skip to content

Commit

Permalink
QComboBox don't have setPlaceholderText before Qt 5.15
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 committed Nov 10, 2023
1 parent 3dc7e3c commit d8c3194
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions QgisModelBaker/gui/panel/pg_config_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,11 @@ def _show_panel(self):
self._db_action_type == DbActionType.GENERATE
or self._db_action_type == DbActionType.IMPORT_DATA
):
self.pg_schema_combo_box.setPlaceholderText(self.tr("Schema Name"))
self.pg_schema_combo_box.lineEdit().setPlaceholderText(
self.tr("Schema Name")
)
elif self._db_action_type == DbActionType.EXPORT:
self.pg_schema_combo_box.setPlaceholderText(
self.pg_schema_combo_box.lineEdit().setPlaceholderText(
self.tr("[Enter a valid schema]")
)
else:
Expand Down

0 comments on commit d8c3194

Please sign in to comment.