summaryrefslogtreecommitdiff
path: root/src/gui/tradewindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-19 21:02:14 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:42 +0300
commit213a21e4c079113e5822d2cf90802d6dcb2cb232 (patch)
tree9d3ae306575ef0dc5c3b8346673e2f246b5e427e /src/gui/tradewindow.cpp
parentc632452430cb3f886da38fa315cb27a3a3a10d2c (diff)
downloadplus-213a21e4c079113e5822d2cf90802d6dcb2cb232.tar.gz
plus-213a21e4c079113e5822d2cf90802d6dcb2cb232.tar.bz2
plus-213a21e4c079113e5822d2cf90802d6dcb2cb232.tar.xz
plus-213a21e4c079113e5822d2cf90802d6dcb2cb232.zip
In all controls, call Widget2 methods to get colors.
Diffstat (limited to 'src/gui/tradewindow.cpp')
-rw-r--r--src/gui/tradewindow.cpp8
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)));
}