mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue