mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Show sample time in the mouseover.
This is really nice to have when looking at specific coutures of a dive or events. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
93d6eb1397
commit
7d9c1e9ee4
6 changed files with 21 additions and 0 deletions
|
@ -74,6 +74,7 @@ void PreferencesDialog::setUiFromPrefs()
|
|||
ui->fontsize->setValue(prefs.font_size);
|
||||
ui->defaultfilename->setText(prefs.default_filename);
|
||||
ui->displayinvalid->setChecked(prefs.show_invalid);
|
||||
ui->show_time->setChecked(prefs.show_time);
|
||||
}
|
||||
|
||||
void PreferencesDialog::restorePrefs()
|
||||
|
@ -114,6 +115,7 @@ void PreferencesDialog::setPrefsFromUi()
|
|||
prefs.font_size = ui->fontsize->value();
|
||||
prefs.default_filename = strdup(ui->defaultfilename->text().toUtf8().data());
|
||||
prefs.display_invalid_dives = ui->displayinvalid->isChecked();
|
||||
SP(show_time, ui->show_time);
|
||||
}
|
||||
|
||||
#define SB(V, B) s.setValue(V, (int)(B->isChecked() ? 1 : 0))
|
||||
|
@ -139,6 +141,7 @@ void PreferencesDialog::syncSettings()
|
|||
SB("calcalltissues", ui->all_tissues);
|
||||
s.setValue("gflow", ui->gflow->value());
|
||||
s.setValue("gfhigh", ui->gfhigh->value());
|
||||
SB("show_time", ui->show_time);
|
||||
s.endGroup();
|
||||
|
||||
// Units
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue