diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-19 21:02:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 13:55:42 +0300 |
commit | 213a21e4c079113e5822d2cf90802d6dcb2cb232 (patch) | |
tree | 9d3ae306575ef0dc5c3b8346673e2f246b5e427e /src/gui/tradewindow.cpp | |
parent | c632452430cb3f886da38fa315cb27a3a3a10d2c (diff) | |
download | mv-213a21e4c079113e5822d2cf90802d6dcb2cb232.tar.gz mv-213a21e4c079113e5822d2cf90802d6dcb2cb232.tar.bz2 mv-213a21e4c079113e5822d2cf90802d6dcb2cb232.tar.xz mv-213a21e4c079113e5822d2cf90802d6dcb2cb232.zip |
In all controls, call Widget2 methods to get colors.
Diffstat (limited to 'src/gui/tradewindow.cpp')
-rw-r--r-- | src/gui/tradewindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/tradewindow.cpp b/src/gui/tradewindow.cpp index 5cb77dd9d..fb361d8c0 100644 --- a/src/gui/tradewindow.cpp +++ b/src/gui/tradewindow.cpp @@ -155,13 +155,13 @@ void TradeWindow::setMoney(const int amount) } else { - mMoneyLabel->setForegroundColor(Theme::getThemeColor( + mMoneyLabel->setForegroundColor(getThemeColor( static_cast<int>(Theme::WARNING))); } } else { - mMoneyLabel->setForegroundColor(Theme::getThemeColor( + mMoneyLabel->setForegroundColor(getThemeColor( static_cast<int>(Theme::LABEL))); mGotMaxMoney = amount; } @@ -230,7 +230,7 @@ void TradeWindow::reset() setMoney(0); mMoneyField->setEnabled(true); mMoneyField->setText(""); - mMoneyLabel->setForegroundColor(Theme::getThemeColor( + mMoneyLabel->setForegroundColor(getThemeColor( static_cast<int>(Theme::LABEL))); mAddButton->setEnabled(true); mMoneyChangeButton->setEnabled(true); @@ -404,7 +404,7 @@ void TradeWindow::clear() mAutoAddAmount = 0; mGotMoney = 0; mGotMaxMoney = 0; - mMoneyLabel->setForegroundColor(Theme::getThemeColor( + mMoneyLabel->setForegroundColor(getThemeColor( static_cast<int>(Theme::LABEL))); } |