From de592229dfc4a627e0d0ef328c56b108c1fc830c Mon Sep 17 00:00:00 2001 From: Thomas Moenicke Date: Mon, 19 Jul 2010 13:18:24 +0300 Subject: Changes: improving progress bar speed using composition mode, using a mask image defined in SVG RevBy: Sergiy Details: see also meegotouch-theme changes --- demos/widgetsgallery/progressbarpage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demos') diff --git a/demos/widgetsgallery/progressbarpage.cpp b/demos/widgetsgallery/progressbarpage.cpp index 347914df..de34b1e2 100644 --- a/demos/widgetsgallery/progressbarpage.cpp +++ b/demos/widgetsgallery/progressbarpage.cpp @@ -55,7 +55,7 @@ void ProgressBarPage::createContent() bar1 = new MProgressIndicator(centralWidget(), MProgressIndicator::barType); // Since range's type is int, we want a fairly large number here, to get a smooth animation - bar1->setRange(0, 99999); + bar1->setRange(0, 400); bar1->setValue(0); containerPolicy->addItem(bar1); @@ -72,7 +72,7 @@ void ProgressBarPage::createContent() animation->setLoopCount(-1); // start and end value should match bar1's range animation->setStartValue(0); - animation->setEndValue(99999); + animation->setEndValue(400); // 10 ms to fill the bar animation->setDuration(10000); animation->start(); -- cgit v1.2.3