diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-01-25 19:44:16 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-01-26 08:05:39 -0800 |
commit | 3915e8a0d5a3199ec1aa3c2dfc1de049b2be7d9e (patch) | |
tree | 2a0fab9ace54ea2c0d058533726383b3dddd072f /desktop-widgets/filterwidget2.cpp | |
parent | 7b58ea1901917aabf59ee1ae455da9c8a5b5dbd7 (diff) | |
download | subsurface-3915e8a0d5a3199ec1aa3c2dfc1de049b2be7d9e.tar.gz |
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>
Diffstat (limited to 'desktop-widgets/filterwidget2.cpp')
-rw-r--r-- | desktop-widgets/filterwidget2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop-widgets/filterwidget2.cpp b/desktop-widgets/filterwidget2.cpp index 66080cfca..9eb4f733b 100644 --- a/desktop-widgets/filterwidget2.cpp +++ b/desktop-widgets/filterwidget2.cpp @@ -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)); } |