Add "receiving addresses" to toolbar

This commit is contained in:
Wladimir J. van der Laan 2011-06-30 19:43:44 +02:00
parent d56c6f312c
commit d61b7d13e4
3 changed files with 4 additions and 3 deletions

View File

@ -134,12 +134,12 @@ QVariant AddressTableModel::data(const QModelIndex &index, int role) const
} }
return font; return font;
} }
else if (role == Qt::ForegroundRole) else if (role == Qt::BackgroundRole)
{ {
// Show default address in alternative color // Show default address in alternative color
if(priv->isDefaultAddress(rec)) if(priv->isDefaultAddress(rec))
{ {
return QColor(0,0,255); return QColor(255,255,128);
} }
} }
else if (role == Qt::ToolTipRole) else if (role == Qt::ToolTipRole)

View File

@ -72,6 +72,7 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):
toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
toolbar->addAction(sendcoins); toolbar->addAction(sendcoins);
toolbar->addAction(addressbook); toolbar->addAction(addressbook);
toolbar->addAction(receivingAddresses);
// Address: <address>: New... : Paste to clipboard // Address: <address>: New... : Paste to clipboard
QHBoxLayout *hbox_address = new QHBoxLayout(); QHBoxLayout *hbox_address = new QHBoxLayout();
@ -162,7 +163,7 @@ void BitcoinGUI::createActions()
addressbook->setToolTip(tr("Edit the list of stored addresses and labels")); addressbook->setToolTip(tr("Edit the list of stored addresses and labels"));
about = new QAction(QIcon(":/icons/bitcoin"), tr("&About"), this); about = new QAction(QIcon(":/icons/bitcoin"), tr("&About"), this);
about->setToolTip(tr("Show information about Bitcoin")); about->setToolTip(tr("Show information about Bitcoin"));
receivingAddresses = new QAction(QIcon(":/icons/receiving_addresses"), tr("Your &Receiving Addresses..."), this); receivingAddresses = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receiving Addresses..."), this);
receivingAddresses->setToolTip(tr("Show the list of receiving addresses and edit their labels")); receivingAddresses->setToolTip(tr("Show the list of receiving addresses and edit their labels"));
options = new QAction(QIcon(":/icons/options"), tr("&Options..."), this); options = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);
options->setToolTip(tr("Modify configuration options for bitcoin")); options->setToolTip(tr("Modify configuration options for bitcoin"));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 716 B

After

Width:  |  Height:  |  Size: 1.7 KiB