Doc: Fix snippet bug in State Machine overview.
Task-number: QTBUG-24719 Change-Id: Ia0c802f275eaf009e42ffef4cc538f3b3d7561d0 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
This commit is contained in:
parent
015a5e0dca
commit
05a3420381
@ -63,6 +63,7 @@ int main(int argv, char **args)
|
||||
QFinalState *s2 = new QFinalState();
|
||||
s1->addTransition(quitButton, SIGNAL(clicked()), s2);
|
||||
machine.addState(s2);
|
||||
machine.setInitialState(s1);
|
||||
|
||||
QObject::connect(&machine, SIGNAL(finished()), QApplication::instance(), SLOT(quit()));
|
||||
//![1]
|
||||
|
Loading…
Reference in New Issue
Block a user