mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
filter: when a filter preset is selected, suggest its name on save
The goal here is to let the user edit already existing sets and save them using their old name. This is a stop-gap measure until we get a proper filter-set editing interface. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8f898477cb
commit
d064f78608
3 changed files with 12 additions and 3 deletions
|
@ -480,9 +480,10 @@ void DiveComponentSelection::buttonClicked(QAbstractButton *button)
|
|||
}
|
||||
}
|
||||
|
||||
AddFilterPresetDialog::AddFilterPresetDialog(QWidget *parent)
|
||||
AddFilterPresetDialog::AddFilterPresetDialog(const QString &defaultName, QWidget *parent)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
ui.name->setText(defaultName);
|
||||
connect(ui.name, &QLineEdit::textChanged, this, &AddFilterPresetDialog::nameChanged);
|
||||
connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &AddFilterPresetDialog::accept);
|
||||
connect(ui.buttonBox, &QDialogButtonBox::rejected, this, &AddFilterPresetDialog::reject);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue