mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Filter: implement "x of y shown" text
Display the number of dives shown. Copy the UI from the old filter widget. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
7b58ea1901
commit
3915e8a0d5
2 changed files with 65 additions and 27 deletions
|
@ -161,4 +161,7 @@ void FilterWidget2::hideEvent(QHideEvent *event)
|
|||
void FilterWidget2::filterDataChanged(const FilterData &data)
|
||||
{
|
||||
MultiFilterSortModel::instance()->filterDataChanged(data);
|
||||
|
||||
ui.filterText->setText(tr("%L1/%L2 shown").arg(MultiFilterSortModel::instance()->divesDisplayed)
|
||||
.arg(dive_table.nr));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue