examples/animation/stickman/lifecycle.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   192         frameState->setObjectName(QString::fromLatin1("frame %0").arg(i));
   192         frameState->setObjectName(QString::fromLatin1("frame %0").arg(i));
   193         if (previousState == 0)
   193         if (previousState == 0)
   194             topLevel->setInitialState(frameState);
   194             topLevel->setInitialState(frameState);
   195         else
   195         else
   196 //! [2]
   196 //! [2]
   197             previousState->addTransition(previousState, SIGNAL(polished()), frameState);
   197             previousState->addTransition(previousState, SIGNAL(propertiesAssigned()), frameState);
   198 //! [2]
   198 //! [2]
   199         
   199         
   200         previousState = frameState;
   200         previousState = frameState;
   201     }
   201     }
   202 
   202 
   203     // Loop
   203     // Loop
   204     previousState->addTransition(previousState, SIGNAL(polished()), topLevel->initialState());
   204     previousState->addTransition(previousState, SIGNAL(propertiesAssigned()), topLevel->initialState());
   205 
   205 
   206     return topLevel;
   206     return topLevel;
   207 
   207 
   208 }
   208 }
   209 
   209