case Status:
return QString::fromStdString(rec->status.sortKey);
case Date:
- return rec->time;
+ // We need cast here to prevent ambigious conversion error
+ return static_cast<qlonglong>(rec->time);
case Type:
return formatTxType(rec);
case ToAddress:
return formatTxToAddress(rec, true);
case Amount:
- return rec->credit + rec->debit;
+ // Same here
+ return static_cast<qlonglong>(rec->credit + rec->debit);
}
break;
case Qt::ToolTipRole:
case LabelRole:
return walletModel->getAddressTableModel()->labelForAddress(QString::fromStdString(rec->address));
case AmountRole:
- return rec->credit + rec->debit;
+ // And here
+ return static_cast<qlonglong>(rec->credit + rec->debit);
case TxIDRole:
return QString::fromStdString(rec->getTxID());
case TxHashRole: