|
|
|
@ -1014,7 +1014,6 @@ UnitDisplayStatusBarControl::UnitDisplayStatusBarControl():QLabel()
@@ -1014,7 +1014,6 @@ UnitDisplayStatusBarControl::UnitDisplayStatusBarControl():QLabel()
|
|
|
|
|
{ |
|
|
|
|
optionsModel = 0; |
|
|
|
|
createContextMenu(); |
|
|
|
|
setStyleSheet("font:11pt; color: #333333"); |
|
|
|
|
setToolTip(tr("Unit to show amounts in. Click to select another unit.")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1059,7 +1058,7 @@ void UnitDisplayStatusBarControl::setOptionsModel(OptionsModel *optionsModel)
@@ -1059,7 +1058,7 @@ void UnitDisplayStatusBarControl::setOptionsModel(OptionsModel *optionsModel)
|
|
|
|
|
/** When Display Units are changed on OptionsModel it will refresh the display text of the control on the status bar */ |
|
|
|
|
void UnitDisplayStatusBarControl::updateDisplayUnit(int newUnits) |
|
|
|
|
{ |
|
|
|
|
setText(BitcoinUnits::name(newUnits)); |
|
|
|
|
setPixmap(QIcon(":/icons/unit_" + BitcoinUnits::id(newUnits)).pixmap(31,STATUSBAR_ICONSIZE)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** Shows context menu with Display Unit options by the mouse coordinates */ |
|
|
|
|