summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-10-05 12:33:08 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-10-05 12:34:06 (GMT)
commitb73f1b3d88927b0c51c0624f67695cfd80167d38 (patch)
tree6e503ccb2935d2641179e355fa4138a9f86938ce /doc
parent19a6d4245ca152758d8dbc7f7d9ee0f0654c04f7 (diff)
downloadQt-b73f1b3d88927b0c51c0624f67695cfd80167d38.zip
Qt-b73f1b3d88927b0c51c0624f67695cfd80167d38.tar.gz
Qt-b73f1b3d88927b0c51c0624f67695cfd80167d38.tar.bz2
doc: fix two errors in statemachine snippets
Diffstat (limited to 'doc')
-rw-r--r--doc/src/snippets/statemachine/main2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/snippets/statemachine/main2.cpp b/doc/src/snippets/statemachine/main2.cpp
index d882400..2419dc2 100644
--- a/doc/src/snippets/statemachine/main2.cpp
+++ b/doc/src/snippets/statemachine/main2.cpp
@@ -57,7 +57,7 @@ int main(int argv, char **args)
//![0]
//![2]
- s12>addTransition(quitButton, SIGNAL(clicked()), s12);
+ s12->addTransition(quitButton, SIGNAL(clicked()), s12);
//![2]
//![1]
@@ -71,7 +71,7 @@ int main(int argv, char **args)
QButton *interruptButton = new QPushButton("Interrupt Button");
//![3]
- QHistoryState *s1h = s1->addHistoryState();
+ QHistoryState *s1h = new QHistoryState(s1);
QState *s3 = new QState();
s3->assignProperty(label, "text", "In s3");