diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-30 19:43:44 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-30 19:43:44 +0200 |
commit | d61b7d13e4b5ac7bcb864bc9ff8fdb2ee17b0126 (patch) | |
tree | 72d529b89064037dfed5dced86a67ce9c6b15778 | |
parent | d56c6f312c7784e30794ff71eb0b0ec94cdf15ef (diff) |
Add "receiving addresses" to toolbar
-rw-r--r-- | src/qt/addresstablemodel.cpp | 4 | ||||
-rw-r--r-- | src/qt/bitcoingui.cpp | 3 | ||||
-rw-r--r-- | src/qt/res/icons/receive.png | bin | 716 -> 1763 bytes |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/qt/addresstablemodel.cpp b/src/qt/addresstablemodel.cpp index eece092f0d..ecf6f3f3d5 100644 --- a/src/qt/addresstablemodel.cpp +++ b/src/qt/addresstablemodel.cpp @@ -134,12 +134,12 @@ QVariant AddressTableModel::data(const QModelIndex &index, int role) const } return font; } - else if (role == Qt::ForegroundRole) + else if (role == Qt::BackgroundRole) { // Show default address in alternative color if(priv->isDefaultAddress(rec)) { - return QColor(0,0,255); + return QColor(255,255,128); } } else if (role == Qt::ToolTipRole) diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 4e5eaa0683..84eb366593 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -72,6 +72,7 @@ BitcoinGUI::BitcoinGUI(QWidget *parent): toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); toolbar->addAction(sendcoins); toolbar->addAction(addressbook); + toolbar->addAction(receivingAddresses); // Address: <address>: New... : Paste to clipboard QHBoxLayout *hbox_address = new QHBoxLayout(); @@ -162,7 +163,7 @@ void BitcoinGUI::createActions() addressbook->setToolTip(tr("Edit the list of stored addresses and labels")); about = new QAction(QIcon(":/icons/bitcoin"), tr("&About"), this); 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")); options = new QAction(QIcon(":/icons/options"), tr("&Options..."), this); options->setToolTip(tr("Modify configuration options for bitcoin")); diff --git a/src/qt/res/icons/receive.png b/src/qt/res/icons/receive.png Binary files differindex ea9eac679f..e59a2cdc92 100644 --- a/src/qt/res/icons/receive.png +++ b/src/qt/res/icons/receive.png |