mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Undo: implement invalidate-dive command
Connect command to context menu. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
329641fdcd
commit
4e47cdfa2c
8 changed files with 43 additions and 21 deletions
|
|
@ -574,6 +574,27 @@ DiveField EditMode::fieldId() const
|
|||
return DiveField::MODE;
|
||||
}
|
||||
|
||||
// ***** Invalid *****
|
||||
void EditInvalid::set(struct dive *d, int invalid) const
|
||||
{
|
||||
d->invalid = invalid;
|
||||
}
|
||||
|
||||
int EditInvalid::data(struct dive *d) const
|
||||
{
|
||||
return d->invalid;
|
||||
}
|
||||
|
||||
QString EditInvalid::fieldName() const
|
||||
{
|
||||
return tr("invalid");
|
||||
}
|
||||
|
||||
DiveField EditInvalid::fieldId() const
|
||||
{
|
||||
return DiveField::INVALID;
|
||||
}
|
||||
|
||||
// ***** Tag based commands *****
|
||||
EditTagsBase::EditTagsBase(const QStringList &newListIn, bool currentDiveOnly) :
|
||||
EditDivesBase(currentDiveOnly),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue