mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Desktop: show the filter information in the window title
Instead of using the filter widget itself to show the information how many dives are displayed, put it in the window title where it's visible even if the filter widget isn't shown. If the filter is not active, simply show the total number of dives. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
208b3bb9af
commit
3ff131b27d
3 changed files with 14 additions and 3 deletions
|
@ -1636,7 +1636,8 @@ void MainWindow::setTitle()
|
|||
}
|
||||
|
||||
QString unsaved = (unsaved_changes() ? " *" : "");
|
||||
setWindowTitle("Subsurface: " + displayedFilename(existing_filename) + unsaved);
|
||||
QString shown = QString(" (%1)").arg(filterWidget2.shownText());
|
||||
setWindowTitle("Subsurface: " + displayedFilename(existing_filename) + unsaved + shown);
|
||||
}
|
||||
|
||||
void MainWindow::importFiles(const QStringList fileNames)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue