Browse Source

Add "receiving addresses" to toolbar

0.8
Wladimir J. van der Laan 14 years ago
parent
commit
d61b7d13e4
  1. 4
      src/qt/addresstablemodel.cpp
  2. 3
      src/qt/bitcoingui.cpp
  3. BIN
      src/qt/res/icons/receive.png

4
src/qt/addresstablemodel.cpp

@ -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)

3
src/qt/bitcoingui.cpp

@ -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"));

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 716 B

After

Width:  |  Height:  |  Size: 1.7 KiB

Loading…
Cancel
Save