From 7a7f5905cf19f6a773dcf9bab762b54c16e325f2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Oct 2012 17:00:40 +0300 Subject: Add support for padding in progress bars. Also fixed progress bars size. New progress bar attributes: fillPadding - padding for will rectangle padding - normal padding for bar --- src/gui/specialswindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/specialswindow.cpp') diff --git a/src/gui/specialswindow.cpp b/src/gui/specialswindow.cpp index eaeefcf78..0fed5da50 100644 --- a/src/gui/specialswindow.cpp +++ b/src/gui/specialswindow.cpp @@ -237,7 +237,7 @@ SpecialEntry::SpecialEntry(SpecialInfo *info) : progress = static_cast(info->rechargeCurrent) / static_cast(info->rechargeNeeded); } - mRechargeBar = new ProgressBar(progress, 100, 10, Theme::PROG_MP); + mRechargeBar = new ProgressBar(progress, 100, 0, Theme::PROG_MP); mRechargeBar->setSmoothProgress(false); mRechargeBar->setPosition(0, 13); add(mRechargeBar); -- cgit v1.2.3-60-g2f50