summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | Avoid passage where the walls meet the edge of the scene rect.Eskil Abrahamsen Blomfeldt2009-05-061-5/+6
| | | | | | |
| * | | | | | get rid of marginKent Hansen2009-05-051-1/+2
| | | | | | |
| * | | | | | add event as argument to onEntry(), onExit() and onTransition()Kent Hansen2009-05-0515-50/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Accessing the event can be useful. E.g., onEntry() can do some common event processing regardless of which transition caused the state to be entered; onTransition() can be used in combination with eventTest(), where eventTest() would first check that the input matches some criteria, and then the actual processing of that input would be done in onTransition.
| * | | | | | Add randomness.Eskil Abrahamsen Blomfeldt2009-05-051-2/+2
| | | | | | |
| * | | | | | Make sure target state is set correctly. Also make sure eventTest() actuallyEskil Abrahamsen Blomfeldt2009-05-051-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | overrides the virtual function.
| * | | | | | Set collidedLine for the implicit walls around the scene to allow for collisionEskil Abrahamsen Blomfeldt2009-05-051-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | response.
| * | | | | | Make sure the correct position/direction is actually set at the end of aEskil Abrahamsen Blomfeldt2009-05-051-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | loop. Also make sure we set the direction to an angle within 360 degrees.
| * | | | | | Fix support reverse actions. Logic was broken and would always return falseEskil Abrahamsen Blomfeldt2009-05-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | immediately for reverse actions, thus immediately stopping them.
| * | | | | | Add unfinished "more advanced" AI for errorstate.Eskil Abrahamsen Blomfeldt2009-04-306-5/+184
| | | | | | |
| * | | | | | Make design better. Remove the Tank interface. This is now an implicit interfaceEskil Abrahamsen Blomfeldt2009-04-3016-86/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | based on the meta-object system.
| * | | | | | Add two AIs: They are both designed to do the same. Spin until they see a tankEskil Abrahamsen Blomfeldt2009-04-3014-26/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and then fire. One of them has an error, which causes it to enter its error state. The errorstate example has been changed to handle this by disabling the tank. The rest of the tanks will keep working.
| * | | | | | kill QStateMachine::animationsFinished(), introduce QState::polished()Kent Hansen2009-04-291-2/+2
| | | | | | |
| * | | | | | Compile against new QState::ChildMode API.Eskil Abrahamsen Blomfeldt2009-04-291-1/+1
| | | | | | |
| * | | | | | Kill gameOver signal as it was only used when you clicked the stop actionEskil Abrahamsen Blomfeldt2009-04-292-9/+6
| | | | | | |
| * | | | | | Merge branch 'kinetic-animations' into kinetic-statemachineKent Hansen2009-04-2921-117/+370
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: examples/animation/sub-attaq/states.cpp
| | * | | | | | Build fix for mingwThierry Bastian2009-04-2718-54/+52
| | | | | | | |
| | * | | | | | Add an OSD to display game progress in the sceneAlexis Menard2009-04-2411-65/+320
| | | | | | | |
| * | | | | | | replace QState::Type with QState::childMode propertyKent Hansen2009-04-292-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Result of API review.
| * | | | | | | Adapt to recent API changes and bug fixes.Eskil Abrahamsen Blomfeldt2009-04-291-2/+6
| | | | | | | |
| * | | | | | | modifiers --> modifiersMaskKent Hansen2009-04-291-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Result of API review. A == comparison of the modifiers is not useful. The common case is you want to test if one or more modifiers are set, i.e. a mask check.
| * | | | | | | make history state constructibleKent Hansen2009-04-292-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decided in API review. The intention of QHistoryState not being constructible was so that people wouldn't subclass it and reimplement onEntry()/onExit(), thinking that those functions would actually get called (which they won't). However, we recently added the entered() signal to QAbstractState, so people are going to connect to it and ask why they never get the signal for a QHistoryState. We might as well make QHistoryState constructible and just document that it doesn't make sense to subclass it.
| * | | | | | | say hello (again) to QAbstract{State,Transition}::machine()Kent Hansen2009-04-292-37/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's useful and it's simple for us to expose, so let's.
| * | | | | | | Work around an oddity in parallel states that causes all regions to exitEskil Abrahamsen Blomfeldt2009-04-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if there is a transition from one of them (even if the target state of the transition is inside the region.)
| * | | | | | | Some updates to the errorstate example.Eskil Abrahamsen Blomfeldt2009-04-2812-126/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added cannon firing. There are some problems left: For some reason the parallel state group does not work properly, so only one tank moves even if you add more. There also seems to be something wrong with historyState->setDefaultState().
| * | | | | | | compile after api changesKent Hansen2009-04-283-8/+8
| | | | | | | |
| * | | | | | | Really broken plugin for errorState. Don't try to use this yet, it doesn'tEskil Abrahamsen Blomfeldt2009-04-243-0/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | work at all.
| * | | | | | | Unfinished tank AI game. The idea is that you plug in AIs for the tanks, andEskil Abrahamsen Blomfeldt2009-04-248-0/+619
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | one such plugin will have a run time error, so the game server needs to use errorState for handling errors.
| * | | | | | Merge branch 'kinetic-statemachine' into kinetic-animationsKent Hansen2009-04-248-27/+12
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: examples/animation/piemenu/qgraphicspiemenu_p.h
| | * | | | | | Remove API for setting specific restore policies on states. We have no clearEskil Abrahamsen Blomfeldt2009-04-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use case for this, so it has been removed. If the requirement arises we can add it back in later. Since it no longer makes sense to have it in QAbstractState, the RestorePolicy enum has been moved to QStateMachine.
| | * | | | | | Compile.Eskil Abrahamsen Blomfeldt2009-04-231-2/+0
| | | | | | | |
| | * | | | | | Remove specific RestorePolicy per state from example. The semantics for thisEskil Abrahamsen Blomfeldt2009-04-233-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | have changed to something which is more intuitive, so it is no longer useful for this case.
| | * | | | | | kill the stateactions apiKent Hansen2009-04-225-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It just didn't give us that much. Typically you just reimplement onEntry/onExit/onTransition when you want to do something. We go back to the signals-and-slots approach: states have entered() and exited() signals that you can connect to. It's still possible to have an action-based API, but then you build it on top of the core API, which is OK. Replacing 4 public classes (and one layer in the hierarchy) with 2 signals feels good.
* | | | | | | | Merge branch 'kinetic-declarativeui' of ↵Ian Walters2009-05-074-4/+4
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| * \ \ \ \ \ \ \ Merge branch 'kinetic-declarativeui' of ↵Warwick Allison2009-05-066-6/+6
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| | * \ \ \ \ \ \ \ Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Michael Brasser2009-05-061-1/+1
| | |\ \ \ \ \ \ \ \ | | | | |_|/ / / / / | | | |/| | | | | | | | | | | | | | | | kinetic-declarativeui
| | | * | | | | | | Merge branch '4.5' of git@scm.dev.troll.no:qt/qtSimon Hausmann2009-05-061-1/+1
| | | |\ \ \ \ \ \ \ | | | | | |_|/ / / / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gui/kernel/qcocoaview_mac_p.h src/gui/widgets/qmainwindow.cpp
| | | | * | | | | | Fixed typo in README fileNils Christian Roscher-Nielsen2009-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: David Boddie <dboddie@trolltech.com>
| * | | | | | | | | white background no good in web page, go grayWarwick Allison2009-05-063-3/+3
| | | | | | | | | |
* | | | | | | | | | Move 'final' contacts application to demos.Ian Walters2009-05-078-537/+0
| |/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Will finish the applicaiton in this directory to fully functional. Missing features - removing contacts, clearing search, key only access Known bugs - Scroll crashes if data changes while scrolling, VerticalLayout doesn't align horizontally correctly when in ListView delegate. ListView only shows one element on startup, even though query consistently indicates 1000 items as count.
* | | | | | | | | Quote align center enum appropriatelyIan Walters2009-05-065-5/+5
|/ / / / / / / /
* | | | | | | | Merge branch 'kinetic-declarativeui' of ↵Ian Walters2009-05-068-332/+30
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| * \ \ \ \ \ \ \ Merge branch 'kinetic-declarativeui' of ↵Michael Brasser2009-05-064-326/+0
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| | * | | | | | | | Remove contacts example. We have much nicer examples of the same thing.Martin Jones2009-05-064-326/+0
| | | | | | | | | |
| * | | | | | | | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Michael Brasser2009-05-054-6/+30
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| / / / / / / / | | |/ / / / / / / kinetic-declarativeui
| | * | | | | | | Merge commit 'origin/4.5'Bjoern Erik Nilsen2009-04-294-6/+30
| | |\ \ \ \ \ \ \ | | | |/ / / / / /
| | | * | | | | | Corrected bugs in the flow layout exampleMorten Engvoldsen2009-04-294-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corrected bugs in the example and added markers for snippets in the documentation. Task-number: 250616 Rev-by: Geir Vattekar
| | | * | | | | | fixed minor issue with the piechart demoPierre Rossi2009-04-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rubberband was not set on the viewport, leading to an offset when adding margins. Task-number: 251892 Reviewed-by: Alexis
* | | | | | | | | Images for third chapter of the tutorialIan Walters2009-05-061-3/+3
| | | | | | | | |
* | | | | | | | | Put more items in the contact table.Ian Walters2009-05-066-0/+1365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need a few names for scrolling to be demonstrated. Also still only a few hundred K, so 1000 items not that big a deal.
* | | | | | | | | Use new syntax for properties and signals.Ian Walters2009-05-069-77/+37
| | | | | | | | |