summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/src/statemachine.qdoc
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2020-01-25 21:19:47 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2020-01-26 17:52:01 +0100
commitae9056587a52d51c7b41b41f631c6cab8097a7c7 (patch)
tree41c59ee724df93a232e78ed880460559545c3ce2 /src/corelib/doc/src/statemachine.qdoc
parentaec4e05e9e8ad9109d7db15dd0fea477e4574c20 (diff)
Doc/QtCore: use new signal/slot signature in snippets
Use the new signal/slot syntax in the snippets where possible. Also change some 0 to nullptr. Change-Id: Ie3da2721d3cec33704f73f4d39c06a767717b095 Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
Diffstat (limited to 'src/corelib/doc/src/statemachine.qdoc')
-rw-r--r--src/corelib/doc/src/statemachine.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/doc/src/statemachine.qdoc b/src/corelib/doc/src/statemachine.qdoc
index 43c8497ef2..881a0785c6 100644
--- a/src/corelib/doc/src/statemachine.qdoc
+++ b/src/corelib/doc/src/statemachine.qdoc
@@ -323,12 +323,12 @@
QState *s1 = new QState(&machine);
QPushButton button;
- QSignalTransition *trans = new QSignalTransition(&button, SIGNAL(clicked()));
+ QSignalTransition *trans = new QSignalTransition(&button, &QPushButton::clicked);
s1->addTransition(trans);
QMessageBox msgBox;
msgBox.setText("The button was clicked; carry on.");
- QObject::connect(trans, SIGNAL(triggered()), &msgBox, SLOT(exec()));
+ QObject::connect(trans, QSignalTransition::triggered, &msgBox, &QMessageBox::exec);
machine.setInitialState(s1);
\endcode