|
|
|
@ -85,6 +85,9 @@ QVariant TransactionHistoryModel::data(const QModelIndex &index, int role) const
|
|
|
|
|
case TransactionConfirmationsRole:
|
|
|
|
|
result = tInfo->confirmations();
|
|
|
|
|
break;
|
|
|
|
|
case TransactionConfirmationsRequiredRole:
|
|
|
|
|
result = (tInfo->blockHeight() < tInfo->unlockTime()) ? tInfo->unlockTime() - tInfo->blockHeight() : 0;
|
|
|
|
|
break;
|
|
|
|
|
case TransactionHashRole:
|
|
|
|
|
result = tInfo->hash();
|
|
|
|
|
break;
|
|
|
|
@ -130,6 +133,7 @@ QHash<int, QByteArray> TransactionHistoryModel::roleNames() const
|
|
|
|
|
roleNames.insert(TransactionFeeRole, "fee");
|
|
|
|
|
roleNames.insert(TransactionBlockHeightRole, "blockHeight");
|
|
|
|
|
roleNames.insert(TransactionConfirmationsRole, "confirmations");
|
|
|
|
|
roleNames.insert(TransactionConfirmationsRequiredRole, "confirmationsRequired");
|
|
|
|
|
roleNames.insert(TransactionHashRole, "hash");
|
|
|
|
|
roleNames.insert(TransactionTimeStampRole, "timeStamp");
|
|
|
|
|
roleNames.insert(TransactionPaymentIdRole, "paymentId");
|
|
|
|
|