Show the device id in hex

This is consistent with what we used to do

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-06-17 12:46:35 -07:00
parent 9d611ba279
commit 1ee894dced

View file

@ -1196,7 +1196,7 @@ QVariant DiveComputerModel::data(const QModelIndex& index, int role) const
QVariant ret;
if (role == Qt::DisplayRole || role == Qt::EditRole){
switch(index.column()){
case ID : ret = device->deviceid; break;
case ID: ret = QString("0x").append(QString::number(device->deviceid, 16)); break;
case MODEL: ret = device->model; break;
case NICKNAME: ret = device->nickname; break;
}