Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactiontablemodel.cpp
Show First 20 Lines • Show All 575 Lines • ▼ Show 20 Lines | switch (role) { | ||||
if (rec->status.status == TransactionStatus::Abandoned) { | if (rec->status.status == TransactionStatus::Abandoned) { | ||||
return COLOR_TX_STATUS_DANGER; | return COLOR_TX_STATUS_DANGER; | ||||
} | } | ||||
// Non-confirmed (but not immature) as transactions are grey | // Non-confirmed (but not immature) as transactions are grey | ||||
if (!rec->status.countsForBalance && | if (!rec->status.countsForBalance && | ||||
rec->status.status != TransactionStatus::Immature) { | rec->status.status != TransactionStatus::Immature) { | ||||
return COLOR_UNCONFIRMED; | return COLOR_UNCONFIRMED; | ||||
} | } | ||||
if (index.column() == Amount && (rec->credit + rec->debit) < 0) { | if (index.column() == Amount && | ||||
(rec->credit + rec->debit) < ::Amount(0)) { | |||||
return COLOR_NEGATIVE; | return COLOR_NEGATIVE; | ||||
} | } | ||||
if (index.column() == ToAddress) { | if (index.column() == ToAddress) { | ||||
return addressColor(rec); | return addressColor(rec); | ||||
} | } | ||||
break; | break; | ||||
case TypeRole: | case TypeRole: | ||||
return rec->type; | return rec->type; | ||||
▲ Show 20 Lines • Show All 195 Lines • Show Last 20 Lines |