diff options
author | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2016-08-25 14:32:32 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2016-08-26 13:48:25 +0000 |
commit | a34e5cda67c92021d6999b3544669cdbbd9655f8 (patch) | |
tree | 423041c353463a595cb0898a8cccb751f76df97c /examples/scxml/pinball/doc/src/pinball.qdoc | |
parent | 4b0e41ade98f1540018b0388eea071a0a6c8c429 (diff) |
Small corrections to examples
Fix docs accordingly.
Change-Id: Ib008cc841f7533ff7f32ae134dfd4f6a8b36df15
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'examples/scxml/pinball/doc/src/pinball.qdoc')
-rw-r--r-- | examples/scxml/pinball/doc/src/pinball.qdoc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/examples/scxml/pinball/doc/src/pinball.qdoc b/examples/scxml/pinball/doc/src/pinball.qdoc index 2dd9949..81a35aa 100644 --- a/examples/scxml/pinball/doc/src/pinball.qdoc +++ b/examples/scxml/pinball/doc/src/pinball.qdoc @@ -423,12 +423,12 @@ \printuntil /^\ {16}<\// When we receive the \c updateLights event, we first want to send a - \c updateScore signal outside of the state machine. We pass - the current values of the \c highScore and \c score variables to the signal. - This signal is received by the C++ part. + \c updateScore event outside of the state machine. We pass + the current values of the \c highScore and \c score variables to the event. + This event is received by the C++ part. Next, depending on whether we are in \c jackpotStateOn or \c jackpotStateOff, - we send the \c turnOnJackpot or the \c turnOffJackpot signal, + we send the \c turnOnJackpot or the \c turnOffJackpot event, which instructs the \c guiControl state to transition to \c jackpotLightOn or \c jackpotLightOff, respectively. @@ -454,7 +454,7 @@ The class is declared in \e mainwindow.h. \quotefromfile pinball/mainwindow.h - \skipto Pinball + \skipto MainWindow \printuntil }; The \c MainWindow class holds the pointer to the @@ -482,10 +482,9 @@ the widget is disabled. We do that for all lights, targets, and description labels. - We also connect to the \c eventOccurred() signal, propagated - by the state machine and intercept the \c updateScore - event sent from the SCXML document in order to update - the score displays with the values passed with the event. + We also intercept the \c updateScore event sent by the state machine, + in order to update the score displays with the values + passed with the event. The info about hitting any GUI target needs to be passed to the state machine and we do that by connecting |