diff --git a/src/qt/bitcoin.qrc b/src/qt/bitcoin.qrc
index 80904b341..8cf6c3252 100644
--- a/src/qt/bitcoin.qrc
+++ b/src/qt/bitcoin.qrc
@@ -5,6 +5,11 @@
res/icons/quit.png
res/icons/send.png
res/icons/toolbar.png
+ res/icons/connect0_16.png
+ res/icons/connect1_16.png
+ res/icons/connect2_16.png
+ res/icons/connect3_16.png
+ res/icons/connect4_16.png
res/images/about.png
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp
index 23640fe63..96afa41aa 100644
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -108,12 +108,12 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):
// Create status bar
statusBar();
-
+
labelConnections = new QLabel();
labelConnections->setFrameStyle(QFrame::Panel | QFrame::Sunken);
- labelConnections->setMinimumWidth(130);
+ labelConnections->setMinimumWidth(150);
labelConnections->setToolTip(tr("Number of connections to other clients"));
-
+
labelBlocks = new QLabel();
labelBlocks->setFrameStyle(QFrame::Panel | QFrame::Sunken);
labelBlocks->setMinimumWidth(130);
@@ -345,7 +345,17 @@ void BitcoinGUI::setAddress(const QString &addr)
void BitcoinGUI::setNumConnections(int count)
{
- labelConnections->setText(QLocale::system().toString(count)+" "+tr("connections(s)", "", count));
+ QString icon;
+ switch(count)
+ {
+ case 0: icon = ":/icons/connect0"; break;
+ case 1: icon = ":/icons/connect1"; break;
+ case 2: icon = ":/icons/connect2"; break;
+ case 3: icon = ":/icons/connect3"; break;
+ default: icon = ":/icons/connect4"; break;
+ }
+ labelConnections->setTextFormat(Qt::RichText);
+ labelConnections->setText(" " + QLocale::system().toString(count)+" "+tr("connection(s)", "", count));
}
void BitcoinGUI::setNumBlocks(int count)
diff --git a/src/qt/bitcoingui.h b/src/qt/bitcoingui.h
index 96452ef18..e1b3ef178 100644
--- a/src/qt/bitcoingui.h
+++ b/src/qt/bitcoingui.h
@@ -40,6 +40,7 @@ private:
QLineEdit *address;
QLabel *labelBalance;
QLabel *labelConnections;
+ QLabel *labelConnectionsIcon;
QLabel *labelBlocks;
QLabel *labelTransactions;
diff --git a/src/qt/res/icons/connect0_16.png b/src/qt/res/icons/connect0_16.png
new file mode 100644
index 000000000..66f3ae4f8
Binary files /dev/null and b/src/qt/res/icons/connect0_16.png differ
diff --git a/src/qt/res/icons/connect1_16.png b/src/qt/res/icons/connect1_16.png
new file mode 100644
index 000000000..76000beee
Binary files /dev/null and b/src/qt/res/icons/connect1_16.png differ
diff --git a/src/qt/res/icons/connect2_16.png b/src/qt/res/icons/connect2_16.png
new file mode 100644
index 000000000..6d9a37281
Binary files /dev/null and b/src/qt/res/icons/connect2_16.png differ
diff --git a/src/qt/res/icons/connect3_16.png b/src/qt/res/icons/connect3_16.png
new file mode 100644
index 000000000..a21170078
Binary files /dev/null and b/src/qt/res/icons/connect3_16.png differ
diff --git a/src/qt/res/icons/connect4_16.png b/src/qt/res/icons/connect4_16.png
new file mode 100644
index 000000000..e2fe97d49
Binary files /dev/null and b/src/qt/res/icons/connect4_16.png differ