diff options
author | No'am Rosenthal <noam.rosenthal@nokia.com> | 2009-11-26 15:26:27 -0800 |
---|---|---|
committer | No'am Rosenthal <noam.rosenthal@nokia.com> | 2009-11-26 15:26:27 -0800 |
commit | 9a50c13ad99d40115bb023aa1a89a9f0c1a352bb (patch) | |
tree | 6bd26d27361db11b2e05568dd59934641e1c16d3 /examples/blackjack/blackjack.scxml | |
parent | 3d88526d4943bc6273b2d47f608e9d418724e112 (diff) |
removed fringe features
Diffstat (limited to 'examples/blackjack/blackjack.scxml')
-rw-r--r-- | examples/blackjack/blackjack.scxml | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/examples/blackjack/blackjack.scxml b/examples/blackjack/blackjack.scxml index 5362546..2171565 100644 --- a/examples/blackjack/blackjack.scxml +++ b/examples/blackjack/blackjack.scxml @@ -129,24 +129,8 @@ </onentry> <transition target="newround" /> </state> - <state id="quitdlg"> - <invoke type="q-messagebox"> - <content> - { - "parent" : gameWidget, - "icon" : QMessageBox.Question, - "windowTitle" : "Exit Blackjack", - "text" : "Are you sure?", - "standardButtons" : QMessageBox.Yes|QMessageBox.No - } - </content> - </invoke> - <transition event="q-messagebox.finished" target="exit" cond="_event.data[0]==QMessageBox.Yes" /> - <transition event="q-messagebox.finished" target="gamestate" cond="_event.data[0]==QMessageBox.No" /> - </state> <state id="game"> - <history type="deep" id="gamestate" /> - <transition event="q-signal:exitButton.clicked()" target="quitdlg" /> + <transition event="q-signal:exitButton.clicked()" target="exit" /> <state id="newround"> <onentry> <script> @@ -182,20 +166,7 @@ <transition event="q-signal:surrenderButton.clicked()" target="newround" /> </state> <state id="betTooHigh"> - <invoke type="q-messagebox"> - <content> - { - "parent" : betEdit, - "icon" : QMessageBox.Warning, - "windowTitle" : "Bet is Too High", - "text" : "Please Place Another Bet", - "standardButtons" : - QMessageBox.Ok - } - </content> - </invoke> - <transition event="q-messagebox.finished" target="waitForBet" /> - <transition event="bth-mb-timeout" target="waitForBet" /> + <transition target="waitForBet" /> <onentry> <send event="bth-mb-timeout" delay="1500ms" /> </onentry> |