Skip to content

Commit

Permalink
Tweak advanced search comboboxes style
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSAMPERE committed Jun 8, 2023
1 parent 4d844c5 commit 6e57373
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/search_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,10 @@ def pop_as_cbbs(self, tags: dict):
self.cbb_geofilter.addItem(ico_line, layer.name())
elif layer.geometryType() == 0:
self.cbb_geofilter.addItem(ico_poin, layer.name())
# Format combobox tiems text to fit with widget width
# Format combobox items text to fit with widget width
for cbb in self.cbbs_search_advanced:
cbb_width = cbb.width()
cbb.setStyleSheet("combobox-popup: 0; font-size: 12px")
cbb_width = cbb.width() - 20
cbb_fm = cbb.fontMetrics()

for i in range(cbb.count()):
Expand Down

0 comments on commit 6e57373

Please sign in to comment.