summaryrefslogtreecommitdiffstats
path: root/examples/animation
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-07-01 13:54:10 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-07-01 15:16:10 (GMT)
commit5077f0be81128ee81e8c7875eb9d1e9423868808 (patch)
tree482e93f3f70e74a3c4b1ee0580fc16351186daa1 /examples/animation
parentd0299745e511640df3e0a26e8c447d0960ac4546 (diff)
downloadQt-5077f0be81128ee81e8c7875eb9d1e9423868808.zip
Qt-5077f0be81128ee81e8c7875eb9d1e9423868808.tar.gz
Qt-5077f0be81128ee81e8c7875eb9d1e9423868808.tar.bz2
Animation: fixed a NOTIFY signal name that was wrong
Also slightly updated a demo
Diffstat (limited to 'examples/animation')
-rw-r--r--examples/animation/animatedtiles/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/animation/animatedtiles/main.cpp b/examples/animation/animatedtiles/main.cpp
index 9360d7c..c0d55f3 100644
--- a/examples/animation/animatedtiles/main.cpp
+++ b/examples/animation/animatedtiles/main.cpp
@@ -178,7 +178,7 @@ int main(int argc, char **argv)
QState *centeredState = new QState(rootState);
// Values
- for (int i = 0; i < 64; ++i) {
+ for (int i = 0; i < items.count(); ++i) {
Pixmap *item = items.at(i);
// Ellipse
ellipseState->assignProperty(item, "pos",
@@ -219,7 +219,7 @@ int main(int argc, char **argv)
rootState->setInitialState(centeredState);
QParallelAnimationGroup *group = new QParallelAnimationGroup;
- for (int i = 0; i < 64; ++i) {
+ for (int i = 0; i < items.count(); ++i) {
QPropertyAnimation *anim = new QPropertyAnimation(items[i], "pos");
anim->setDuration(750 + i * 25);
anim->setEasingCurve(QEasingCurve::InOutBack);
@@ -229,7 +229,7 @@ int main(int argc, char **argv)
trans->addAnimation(group);
group = new QParallelAnimationGroup;
- for (int i = 0; i < 64; ++i) {
+ for (int i = 0; i < items.count(); ++i) {
QPropertyAnimation *anim = new QPropertyAnimation(items[i], "pos");
anim->setDuration(750 + i * 25);
anim->setEasingCurve(QEasingCurve::InOutBack);
@@ -239,7 +239,7 @@ int main(int argc, char **argv)
trans->addAnimation(group);
group = new QParallelAnimationGroup;
- for (int i = 0; i < 64; ++i) {
+ for (int i = 0; i < items.count(); ++i) {
QPropertyAnimation *anim = new QPropertyAnimation(items[i], "pos");
anim->setDuration(750 + i * 25);
anim->setEasingCurve(QEasingCurve::InOutBack);
@@ -249,7 +249,7 @@ int main(int argc, char **argv)
trans->addAnimation(group);
group = new QParallelAnimationGroup;
- for (int i = 0; i < 64; ++i) {
+ for (int i = 0; i < items.count(); ++i) {
QPropertyAnimation *anim = new QPropertyAnimation(items[i], "pos");
anim->setDuration(750 + i * 25);
anim->setEasingCurve(QEasingCurve::InOutBack);
@@ -259,7 +259,7 @@ int main(int argc, char **argv)
trans->addAnimation(group);
group = new QParallelAnimationGroup;
- for (int i = 0; i < 64; ++i) {
+ for (int i = 0; i < items.count(); ++i) {
QPropertyAnimation *anim = new QPropertyAnimation(items[i], "pos");
anim->setDuration(750 + i * 25);
anim->setEasingCurve(QEasingCurve::InOutBack);