summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/tankgame/mainwindow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove tank game exampleEskil Abrahamsen Blomfeldt2009-07-281-342/+0
| | | | | | | | | After discussions with product management, it was considered best that this example be removed until it can be improved. There are some bugs an irregularities that should be cleaned up, and the theme should be made less violent. Reviewed-by: Volker Hilsheimer
* Make QStateMachine inherit QStateKent Hansen2009-07-221-3/+3
| | | | | | | | | | | | | | | | | | This removes the need for a "root state" in the machine; or rather, the machine _is_ the root state. User code can now pass in a QStateMachine directly to the QState constructor, instead of machine->rootState(). This also means we could get rid of the "proxying" from the machine to the root state for things like properties (initialState et al), finished() signal and auto-reparenting of states (the ChildAdded event hack). A fun little side-effect of this change is that it's now possible to embed state machines within state machines. We can't think of a good use case yet where you would rather embed a stand-alone state machine (with its own event processing etc.) rather than having just a regular nested state, but it's neat and it works. Reviewed-by: Eskil Abrahamsen Blomfeldt
* Update license headers in files that are new in 4.6.Jason McDonald2009-06-171-2/+2
| | | | Reviewed-by: Trust Me
* Fix missing/outdated license headers.Jason McDonald2009-05-211-20/+61
| | | | Reviewed-by: Trust Me
* fix compiler warningsKent Hansen2009-05-201-1/+1
|
* Pop up message when a tank wins the gameEskil Abrahamsen Blomfeldt2009-05-141-10/+43
| | | | | Also fixed: Added some docs and moved the tanks a little so they don't start partly outside the scene rect.
* doc: Correct names of snippets in docs for Tank Game exampleEskil Abrahamsen Blomfeldt2009-05-131-0/+4
|
* Change name of "errorstate" example to "tankgame"Eskil Abrahamsen Blomfeldt2009-05-121-0/+264
The error state is not a big enough part of the example to justify naming it after it.