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
@ -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()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user