diff options
author | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2016-07-25 14:24:12 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2016-07-26 08:00:10 +0000 |
commit | 6e0f6c869ea29a45822f6a7e0683cc4057a7bd76 (patch) | |
tree | 5139a978f5a0b0888ff2857149b2b09672b40f83 /examples/scxml/pinball/doc | |
parent | c45794fdd4e23cf27048e3207b4ade73be23b841 (diff) |
Reduce repeating code
Change-Id: I53f3357af4070a9a5b1e964e6ed657923c0939d0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'examples/scxml/pinball/doc')
-rw-r--r-- | examples/scxml/pinball/doc/src/pinball.qdoc | 39 |
1 files changed, 15 insertions, 24 deletions
diff --git a/examples/scxml/pinball/doc/src/pinball.qdoc b/examples/scxml/pinball/doc/src/pinball.qdoc index b3566eb..2dd9949 100644 --- a/examples/scxml/pinball/doc/src/pinball.qdoc +++ b/examples/scxml/pinball/doc/src/pinball.qdoc @@ -344,6 +344,15 @@ \printuntil updateLights \dots 20 \skipto /^\ {16}<\// + \printuntil updateLightsAccordingToLettersState + \dots 20 + \skipto /^\ {16}<\// + \printuntil turnOnLights + \dots 20 + \skipto /^\ {16}<\// + \printuntil turnOffLights + \dots 20 + \skipto /^\ {16}<\// \printuntil /^\ {12}<\// The \c lightImpulseGenerator contains two child states: @@ -405,30 +414,12 @@ the machine to activate the \c jackpotStateOn. \skipto updateLights - \printuntil rLetterOn - \dots 32 - \skipto /^\ {28}<\// - \printuntil aLetterOn - \dots 32 - \skipto /^\ {28}<\// - \printuntil zLetterOn - \dots 32 - \skipto /^\ {28}<\// - \printuntil yLetterOn - \dots 32 - \skipto /^\ {28}<\// - \printuntil rLetterOn - \dots 32 - \skipto /^\ {28}<\// - \printuntil aLetterOn - \dots 32 - \skipto /^\ {28}<\// - \printuntil zLetterOn - \dots 32 - \skipto /^\ {28}<\// - \printuntil yLetterOn - \dots 32 - \skipto /^\ {28}<\// + \printuntil /^\ {16}<\// + \printuntil updateLightsAccordingToLettersState + \printuntil /^\ {16}<\// + \printuntil turnOnLights + \printuntil /^\ {16}<\// + \printuntil turnOffLights \printuntil /^\ {16}<\// When we receive the \c updateLights event, we first want to send a |