mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Configure divecomputers: access table data the same way as its set
The table data is set via role, so retrieve the data via role too. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e70b33a56b
commit
444d0d6693
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ void ConfigureDiveComputerDialog::populateDeviceDetails()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define GET_INT_FROM(_field, _default) ((_field) != NULL) ? (_field)->text().toInt() : (_default)
|
#define GET_INT_FROM(_field, _default) ((_field) != NULL) ? (_field)->data(Qt::EditRole).toInt() : (_default)
|
||||||
|
|
||||||
void ConfigureDiveComputerDialog::populateDeviceDetailsOSTC3()
|
void ConfigureDiveComputerDialog::populateDeviceDetailsOSTC3()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue