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:
Dirk Hohndel 2017-02-04 13:59:20 -08:00
parent ba570c9eea
commit 74b542ee60
2 changed files with 18 additions and 0 deletions

View file

@ -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)

View file

@ -76,6 +76,8 @@ slots:
void on_diveTripLocation_textEdited(const QString& text);
void on_notes_textChanged();
void on_airtemp_textChanged(const QString &text);
void on_duration_textChanged(const QString &text);
void on_depth_textChanged(const QString &text);
void divetype_Changed(int);
void on_watertemp_textChanged(const QString &text);
void validate_temp_field(QLineEdit *tempField, const QString &text);