mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive sites: add fulltext filter
In the dive site tab, add a fulltext filter. The UI is only a mock up. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9afea37e15
commit
22fe0c14e8
5 changed files with 34 additions and 7 deletions
|
@ -74,3 +74,8 @@ void TabDiveSite::on_purgeUnused_clicked()
|
|||
{
|
||||
Command::purgeUnusedDiveSites();
|
||||
}
|
||||
|
||||
void TabDiveSite::on_filterText_textChanged(const QString &text)
|
||||
{
|
||||
model.setFilter(text);
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ private slots:
|
|||
void diveSiteAdded(struct dive_site *, int idx);
|
||||
void diveSiteChanged(struct dive_site *ds, int field);
|
||||
void on_purgeUnused_clicked();
|
||||
void on_filterText_textChanged(const QString &text);
|
||||
private:
|
||||
Ui::TabDiveSite ui;
|
||||
DiveSiteSortedModel model;
|
||||
|
|
|
@ -15,11 +15,18 @@
|
|||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QToolButton" name="purgeUnused">
|
||||
<property name="text">
|
||||
<string>Purge unused dive sites</string>
|
||||
</property>
|
||||
</widget>
|
||||
<layout class="QHBoxLayout" name="layout">
|
||||
<item>
|
||||
<widget class="QToolButton" name="purgeUnused">
|
||||
<property name="text">
|
||||
<string>Purge unused dive sites</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="filterText"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="TableView" name="diveSites" native="true"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue