aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/filterwidget2.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-09-12 09:48:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-09-29 16:13:03 -0700
commit1ed61aeabfd2e28dc60d60f5af2253dd8b8e235a (patch)
tree1d6a9bfe94b190371a50f2821709061fde0f14d0 /desktop-widgets/filterwidget2.h
parente1c44a0a4db12ec9fa36c84b7b457d3957059b60 (diff)
downloadsubsurface-1ed61aeabfd2e28dc60d60f5af2253dd8b8e235a.tar.gz
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/filterwidget2.h')
-rw-r--r--desktop-widgets/filterwidget2.h2
1 files changed, 2 insertions, 0 deletions
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<QMenu> loadFilterPresetMenu;
+ int selectedPreset() const; // returns -1 of no preset is selected
+ void updatePresetLabel();
};
#endif