Add "receiving addresses" to toolbar
authorWladimir J. van der Laan <laanwj@gmail.com>
Thu, 30 Jun 2011 17:43:44 +0000 (19:43 +0200)
committerWladimir J. van der Laan <laanwj@gmail.com>
Thu, 30 Jun 2011 17:43:44 +0000 (19:43 +0200)
src/qt/addresstablemodel.cpp
src/qt/bitcoingui.cpp
src/qt/res/icons/receive.png

index eece092..ecf6f3f 100644 (file)
@@ -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)
index 4e5eaa0..84eb366 100644 (file)
@@ -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"));
index ea9eac6..e59a2cd 100644 (file)
Binary files a/src/qt/res/icons/receive.png and b/src/qt/res/icons/receive.png differ