summaryrefslogtreecommitdiff
path: root/src/gui/windows/itemamountwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-30 22:59:30 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-30 22:59:30 +0300
commit54a54eb5317650fc3306d200517bcc48bb7f1d9c (patch)
treec9531ffffa2b8a97c134a0d7d0ad14de16da3dc9 /src/gui/windows/itemamountwindow.cpp
parent679f626e7e937a55b315d58fd3c3e23077e91ede (diff)
downloadplus-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.gz
plus-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.bz2
plus-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.xz
plus-54a54eb5317650fc3306d200517bcc48bb7f1d9c.zip
fix styled drawing after update.
Diffstat (limited to 'src/gui/windows/itemamountwindow.cpp')
-rw-r--r--src/gui/windows/itemamountwindow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp
index 9800379b1..5e613cc62 100644
--- a/src/gui/windows/itemamountwindow.cpp
+++ b/src/gui/windows/itemamountwindow.cpp
@@ -391,7 +391,7 @@ void ItemAmountWindow::action(const gcn::ActionEvent &event)
else if (eventId == "slide")
amount = static_cast<int>(mItemAmountSlide->getValue());
mItemAmountTextField->setValue(amount);
- mItemAmountSlide->setValue(amount);
+ mItemAmountSlide->setValue2(amount);
if (mItemPriceTextField && mItemPriceSlide)
{
@@ -407,14 +407,14 @@ void ItemAmountWindow::action(const gcn::ActionEvent &event)
mPrice++;
price = static_cast<int>(pow(10.0, mPrice));
mItemPriceTextField->setValue(price);
- mItemPriceSlide->setValue(price);
+ mItemPriceSlide->setValue2(price);
}
else if (eventId == "decPrice")
{
mPrice--;
price = static_cast<int>(pow(10.0, mPrice));
mItemPriceTextField->setValue(price);
- mItemPriceSlide->setValue(price);
+ mItemPriceSlide->setValue2(price);
}
else if (eventId == "slidePrice")
{
@@ -424,7 +424,7 @@ void ItemAmountWindow::action(const gcn::ActionEvent &event)
else
mPrice = 0;
mItemPriceTextField->setValue(price);
- mItemPriceSlide->setValue(price);
+ mItemPriceSlide->setValue2(price);
}
}
}
@@ -437,7 +437,7 @@ void ItemAmountWindow::close()
void ItemAmountWindow::keyReleased(gcn::KeyEvent &keyEvent A_UNUSED)
{
- mItemAmountSlide->setValue(mItemAmountTextField->getValue());
+ mItemAmountSlide->setValue2(mItemAmountTextField->getValue());
}
void ItemAmountWindow::showWindow(const Usage usage, Window *const parent,