summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into graphics-masterTom Cooksey2009-05-25169-0/+13347
|\
| * Make sure M_PI is definedKent Hansen2009-05-221-0/+4
| | | | | | | | It isn't on all platforms.
| * Don't use the time() function; use QTime insteadKent Hansen2009-05-221-2/+1
| | | | | | | | time() is not available on all platforms.
| * Fix compile issueThierry Bastian2009-05-221-0/+2
| | | | | | | | Reviewed-by: Kent Hansen
| * Revert "update the padnavigator example and suppress the padnavigator-ng"Thierry Bastian2009-05-228-150/+207
| | | | | | | | | | | | | | | | This reverts commit 1cad8c56002a61a6240e6580cdbd784209821fa6. Conflicts: examples/graphicsview/padnavigator/roundrectitem.cpp
| * Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Thierry Bastian2009-05-2284-139/+1210
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | kinetic-animations Conflicts: src/corelib/kernel/kernel.pri src/corelib/kernel/qvariant_p.h src/corelib/tools/tools.pri src/gui/graphicsview/qgraphicsitem.cpp src/gui/graphicsview/qgraphicsitem.h src/gui/graphicsview/qgraphicswidget.h src/gui/gui.pro
| * | Fix compile error caused by reference to non-existant example.Jason McDonald2009-05-211-1/+0
| | | | | | | | | | | | Reviewed-by: Trust Me
| * | Fix missing/outdated license headers.Jason McDonald2009-05-2122-81/+920
| | | | | | | | | | | | Reviewed-by: Trust Me
| * | update the padnavigator example and suppress the padnavigator-ngThierry Bastian2009-05-2027-1190/+154
| | |
| * | fix compiler warningsKent Hansen2009-05-203-4/+4
| | |
| * | fix two .pro file bugsKent Hansen2009-05-202-2/+1
| | |
| * | compile with -qtnamespace, clean up the example .pro filesKent Hansen2009-05-2032-100/+131
| | |
| * | add README file for examples/animationKent Hansen2009-05-201-0/+38
| | |
| * | Merge branch 'kinetic-statemachine' into kinetic-animationsKent Hansen2009-05-2014-956/+0
| |\ \
| | * | remove the citizenquartz exampleKent Hansen2009-05-2014-956/+0
| | | | | | | | | | | | | | | | It's not done yet, so let's re-add it when it is.
| * | | Remove old examples and demos for animationsThierry Bastian2009-05-2032-3078/+0
| | | |
| * | | Removing QT_EXPERIMENTAL_SOLUTION from the animation apiLeonardo Sobral Cunha2009-05-1927-174/+14
| |/ /
| * | Remove the connectByAnimation() function and add some documentation for the ↵Eskil Abrahamsen Blomfeldt2009-05-142-28/+22
| | | | | | | | | | | | | | | | | | | | | Stickman example The connectByAnimation() function is no longer needed since we have default animations. The docs are unfinished.
| * | Start work on docs for Stickman exampleEskil Abrahamsen Blomfeldt2009-05-141-3/+5
| | |
| * | Fix top level compile in examples/animationEskil Abrahamsen Blomfeldt2009-05-141-3/+0
| | | | | | | | | | | | Three examples have been moved.
| * | Make QAbstractTransition::eventTest() non-constEskil Abrahamsen Blomfeldt2009-05-1410-22/+22
| | | | | | | | | | | | | | | We decided to remove the const of the eventTest() since some transitions have dynamic conditions and need to update when eventTest() is called.
| * | Pop up message when a tank wins the gameEskil Abrahamsen Blomfeldt2009-05-147-12/+111
| | | | | | | | | | | | | | | Also fixed: Added some docs and moved the tanks a little so they don't start partly outside the scene rect.
| * | Fix run-time error in Seek AI's state machineEskil Abrahamsen Blomfeldt2009-05-141-1/+5
| | | | | | | | | | | | | | | Passed parent as 'tank', thus getting a null parent in the GoToLocation state, which breaks the machine when you transition into the state.
| * | Fix SpinState in Tank Game Example to spin more than 180 degreesEskil Abrahamsen Blomfeldt2009-05-142-2/+12
| | | | | | | | | | | | This was a leftover from when the setDirection() semantics were broken.
| * | document statemachine/factorial exampleKent Hansen2009-05-131-26/+38
| | |
| * | doc: Correct names of snippets in docs for Tank Game exampleEskil Abrahamsen Blomfeldt2009-05-131-0/+4
| | |
| * | document the statemachine/eventtransitions exampleKent Hansen2009-05-121-1/+15
| | |
| * | Change name of "errorstate" example to "tankgame"Eskil Abrahamsen Blomfeldt2009-05-1226-29/+40
| | | | | | | | | | | | | | | The error state is not a big enough part of the example to justify naming it after it.
| * | Fixes: document statemachine/twowaybutton exampleKent Hansen2009-05-121-7/+15
| | |
| * | kill some simplistic/overlapping/under-developed examplesKent Hansen2009-05-129-445/+0
| | |
| * | document the statemachine/pingpong exampleKent Hansen2009-05-121-0/+14
| | |
| * | Merge branch 'kinetic-statemachine' of git@scm.dev.nokia.troll.no:qt/kinetic ↵Alexis Menard2009-05-12120-763/+4176
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | into kinetic-statemachine Conflicts: src/gui/graphicsview/qgraphicsitem.cpp
| | * | improve the docs for the trafficlight exampleKent Hansen2009-05-121-25/+22
| | | |
| | * | Make selecting plugins more user friendly and platform independentEskil Abrahamsen Blomfeldt2009-05-115-18/+66
| | | | | | | | | | | | | | | | | | | | | | | | Using *.dll was just a placeholder here. The code is mostly copied from the Plug&Paint example, and goes through all the plugins to find the compatible ones with some hacks to find out the application directory on windows and mac.
| | * | Instead of adding animations for all properties to all transitions, we useEskil Abrahamsen Blomfeldt2009-05-061-7/+11
| | | | | | | | | | | | | | | | the default animation concept, since this is its intended use.
| | * | Add chase state and ability to detect and fire at other tanks. This reveals anEskil Abrahamsen Blomfeldt2009-05-062-4/+92
| | | | | | | | | | | | | | | | assert in the state machine which needs to be debugged.
| | * | 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
| | | |