From 44680110d5a0ae10ec627426442f2e5cd525cda5 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 5 Dec 2023 12:59:03 +1000 Subject: [PATCH] Lint --- felt/gui/create_map_dialog.py | 4 +++- felt/gui/recent_maps_list_view.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/felt/gui/create_map_dialog.py b/felt/gui/create_map_dialog.py index 9533d65..591f60a 100644 --- a/felt/gui/create_map_dialog.py +++ b/felt/gui/create_map_dialog.py @@ -201,7 +201,9 @@ def upload_raster_as_styled_toggled(): self.setting_button.setIcon(GuiUtils.get_icon('setting_icon.svg')) self.setting_button.setPopupMode(QToolButton.InstantPopup) self.setting_button.setStyleSheet( - """QToolButton::menu-indicator { image: none }""" + """QToolButton::menu-indicator { image: none } + QToolButton { border: 1px solid red; border-radius: 2px; } + """ ) self.setting_button.setFixedHeight( self.button_box.button(QDialogButtonBox.Cancel).height() diff --git a/felt/gui/recent_maps_list_view.py b/felt/gui/recent_maps_list_view.py index bdfd624..a9cdec0 100644 --- a/felt/gui/recent_maps_list_view.py +++ b/felt/gui/recent_maps_list_view.py @@ -349,7 +349,8 @@ def __init__(self, parent: Optional[QWidget] = None): def _update_filter_stylesheet(): # this widget removes the stylesheet on edits! self._filter.setStyleSheet( - self._filter.styleSheet() + self._filter._additional_stylesheet) + self._filter.styleSheet() + + self._filter._additional_stylesheet) self._filter.valueChanged.connect(_update_filter_stylesheet) _update_filter_stylesheet()