Browse Source

transaction status icons

0.8
Wladimir J. van der Laan 14 years ago
parent
commit
58557b5aff
  1. 3
      src/qt/bitcoin.qrc
  2. BIN
      src/qt/res/icons/transaction0.png
  3. BIN
      src/qt/res/icons/transaction1.png
  4. BIN
      src/qt/res/icons/transaction2.png
  5. 6
      src/qt/transactiontablemodel.cpp

3
src/qt/bitcoin.qrc

@ -10,6 +10,9 @@ @@ -10,6 +10,9 @@
<file alias="connect2">res/icons/connect2_16.png</file>
<file alias="connect3">res/icons/connect3_16.png</file>
<file alias="connect4">res/icons/connect4_16.png</file>
<file alias="transaction0">res/icons/transaction0.png</file>
<file alias="transaction1">res/icons/transaction1.png</file>
<file alias="transaction2">res/icons/transaction2.png</file>
</qresource>
<qresource prefix="/images">
<file alias="about">res/images/about.png</file>

BIN
src/qt/res/icons/transaction0.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 B

BIN
src/qt/res/icons/transaction1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 969 B

BIN
src/qt/res/icons/transaction2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B

6
src/qt/transactiontablemodel.cpp

@ -414,14 +414,14 @@ QVariant TransactionTableModel::formatTxDecoration(const TransactionRecord *wtx) @@ -414,14 +414,14 @@ QVariant TransactionTableModel::formatTxDecoration(const TransactionRecord *wtx)
case TransactionStatus::Unconfirmed:
if(wtx->status.depth)
{
return QIcon(":/icons/bitcoin");
return QIcon(":/icons/transaction1");
}
else
{
return QIcon::fromTheme("stock_lock.png");
return QIcon(":/icons/transaction0");
}
case TransactionStatus::HaveConfirmations:
return QIcon::fromTheme("stock_lock-ok.png");
return QIcon(":/icons/transaction2");
}
return QColor(0,0,0);
}

Loading…
Cancel
Save