mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Initial response to entering duration or depth
This marks the UI as modified and updates the maxdepth of the dive; it ignores changes to the duration, doesn't modify the profile, so it's nowhere near ready. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ba570c9eea
commit
74b542ee60
2 changed files with 18 additions and 0 deletions
|
@ -1237,6 +1237,22 @@ void MainTab::on_divemaster_textChanged()
|
|||
markChangedWidget(ui.divemaster);
|
||||
}
|
||||
|
||||
void MainTab::on_duration_textChanged(const QString &text)
|
||||
{
|
||||
if (editMode == IGNORE || acceptingEdit == true)
|
||||
return;
|
||||
qDebug() << "duration text changed";
|
||||
}
|
||||
|
||||
void MainTab::on_depth_textChanged(const QString &text)
|
||||
{
|
||||
if (editMode == IGNORE || acceptingEdit == true)
|
||||
return;
|
||||
displayed_dive.maxdepth.mm = parseLengthToMm(text);
|
||||
markChangedWidget(ui.depth);
|
||||
qDebug() << "depth text changed to" << displayed_dive.maxdepth.mm << "mm";
|
||||
}
|
||||
|
||||
void MainTab::on_airtemp_textChanged(const QString &text)
|
||||
{
|
||||
if (editMode == IGNORE || acceptingEdit == true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue