mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Handle Show / Close of the Filter Box
when you close, remove filter. when you open again, restore. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
81bb6086c0
commit
43178be1f2
2 changed files with 20 additions and 0 deletions
|
@ -81,5 +81,19 @@ void FilterWidget2::updateFilter()
|
|||
data.equipment = ui->equipment->text().split(",", QString::SkipEmptyParts);
|
||||
data.invertFilter = ui->invertFilter->isChecked();
|
||||
|
||||
filterData = data;
|
||||
emit filterDataChanged(data);
|
||||
}
|
||||
|
||||
void FilterWidget2::showEvent(QShowEvent *event)
|
||||
{
|
||||
QWidget::showEvent(event);
|
||||
emit filterDataChanged(filterData);
|
||||
}
|
||||
|
||||
void FilterWidget2::hideEvent(QHideEvent *event)
|
||||
{
|
||||
QWidget::hideEvent(event);
|
||||
FilterData data;
|
||||
emit filterDataChanged(data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue