From 1ed61aeabfd2e28dc60d60f5af2253dd8b8e235a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 12 Sep 2020 09:48:25 +0200 Subject: filter: show currently selected preset in a text field This provides some visual feedback on the currently selected preset. Update when changing selection or clearing the filter. Signed-off-by: Berthold Stoeger --- desktop-widgets/filterwidget2.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'desktop-widgets/filterwidget2.h') diff --git a/desktop-widgets/filterwidget2.h b/desktop-widgets/filterwidget2.h index 76d089b61..900cbdad7 100644 --- a/desktop-widgets/filterwidget2.h +++ b/desktop-widgets/filterwidget2.h @@ -50,6 +50,8 @@ private: void selectPreset(int i); void clearFilterData(); std::unique_ptr loadFilterPresetMenu; + int selectedPreset() const; // returns -1 of no preset is selected + void updatePresetLabel(); }; #endif -- cgit v1.2.3-70-g09d2