Skip to content

Commit

Permalink
Increase vertical padding in searched items
Browse files Browse the repository at this point in the history
  • Loading branch information
s-simoncelli committed Feb 17, 2024
1 parent e807e19 commit 6d88951
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pywr_editor/dialogs/search/search_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def __init__(
completer.setFilterMode(Qt.MatchFlag.MatchContains)
completer.setModel(model)
completer.setMaxVisibleItems(10)
completer.popup().setStyleSheet("::item{ padding: 5px }")
# noinspection PyTypeChecker
completer.connect(
completer, SIGNAL("activated(QModelIndex)"), self.open_component
Expand Down
2 changes: 1 addition & 1 deletion pywr_editor/dialogs/search/search_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, model_config: ModelConfig):
{
"name": name,
"icon": QIcon(RecorderIcon(recorder_obj.key)),
"comp_type": f"{recorder_obj.humanised_type} - recorder", #
"comp_type": f"{recorder_obj.humanised_type} - recorder",
"type": ItemType.RECORDER.value,
}
)
Expand Down

0 comments on commit 6d88951

Please sign in to comment.