mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-08 11:44:14 +01:00
[Qt] Add column Watch-only to transactions list
This commit is contained in:
@@ -57,7 +57,15 @@ public:
|
||||
}
|
||||
|
||||
painter->setPen(foreground);
|
||||
painter->drawText(addressRect, Qt::AlignLeft|Qt::AlignVCenter, address);
|
||||
QRect boundingRect;
|
||||
painter->drawText(addressRect, Qt::AlignLeft|Qt::AlignVCenter, address, &boundingRect);
|
||||
|
||||
if (index.data(TransactionTableModel::WatchonlyRole).toBool())
|
||||
{
|
||||
QIcon iconWatchonly = qvariant_cast<QIcon>(index.data(TransactionTableModel::WatchonlyDecorationRole));
|
||||
QRect watchonlyRect(boundingRect.right() + 5, mainRect.top()+ypad+halfheight, 16, halfheight);
|
||||
iconWatchonly.paint(painter, watchonlyRect);
|
||||
}
|
||||
|
||||
if(amount < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user