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>
This commit is contained in:
Berthold Stoeger 2020-09-12 09:48:25 +02:00 committed by Dirk Hohndel
parent e1c44a0a4d
commit 1ed61aeabf
3 changed files with 35 additions and 4 deletions

View file

@ -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