aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoinunits.cpp
diff options
context:
space:
mode:
authorCozz Lovan <cozzlovan@yahoo.com>2014-07-05 17:14:43 +0200
committerCozz Lovan <cozzlovan@yahoo.com>2014-07-05 17:18:26 +0200
commitad87bc4de10d8ff9934635f2a30078ccf531a124 (patch)
tree20c550e66897c3c570f04c9e4e2c1576389eb61e /src/qt/bitcoinunits.cpp
parente81e2e8f7cdee307227f150a6a2408c01fcafbf2 (diff)
[Qt] Replace status bar unit icon with actual images
Diffstat (limited to 'src/qt/bitcoinunits.cpp')
-rw-r--r--src/qt/bitcoinunits.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qt/bitcoinunits.cpp b/src/qt/bitcoinunits.cpp
index 4ba6aba551..bbc9b2e5af 100644
--- a/src/qt/bitcoinunits.cpp
+++ b/src/qt/bitcoinunits.cpp
@@ -34,6 +34,17 @@ bool BitcoinUnits::valid(int unit)
}
}
+QString BitcoinUnits::id(int unit)
+{
+ switch(unit)
+ {
+ case BTC: return QString("btc");
+ case mBTC: return QString("mbtc");
+ case uBTC: return QString("ubtc");
+ default: return QString("???");
+ }
+}
+
QString BitcoinUnits::name(int unit)
{
switch(unit)