summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-10-05 12:33:08 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-10-06 02:54:47 (GMT)
commit6ee7369737feba856e5f2b94f6fa02dce3e489f8 (patch)
tree5a7e77b80f89c7c25e4291336373a2ecf9f6a116 /doc
parent5f1728eb5a6b3e6654f75b4af0812eb3b800989f (diff)
downloadQt-6ee7369737feba856e5f2b94f6fa02dce3e489f8.zip
Qt-6ee7369737feba856e5f2b94f6fa02dce3e489f8.tar.gz
Qt-6ee7369737feba856e5f2b94f6fa02dce3e489f8.tar.bz2
doc: fix two errors in statemachine snippets
(cherry picked from commit b73f1b3d88927b0c51c0624f67695cfd80167d38)
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");