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:
Geir Vattekar 2012-08-21 15:15:07 +02:00 committed by Qt by Nokia
parent 015a5e0dca
commit 05a3420381

View File

@ -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]