summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Update contact URL in license headers.Jason McDonald2009-08-121068-1068/+1068
| | | | Reviewed-by: Trust Me
* Compile fix with namespaceshjk2009-08-101-0/+2
|
* Doc: Integrated the Rogue (state machine) example.Geir Vattekar2009-08-076-0/+465
| | | | Reviewed-by: Kent Hansen
* implement name() function of custom property iteratorKent Hansen2009-08-061-1/+1
|
* make the calculator example use only standard JSKent Hansen2009-08-061-45/+62
| | | | __qt_sender__ is evil. Gah.
* Fixed compilation of the gestures/imagewidget example.Denis Dzyubenko2009-08-063-12/+35
| | | | | | | Also improved an example a bit to optionally support TapAndHold gesture with plain mouse events. Reviewed-by: trustme
* Added example that uses WebKit to capture Web page frames.Andre Pedralho2009-08-064-0/+278
| | | | | | | | | | The framecapture is based on GraphicsDojo/WebCapture and shows how to use WebKit toolkit to capture a web page and save its internal frames in different image files using the new property QWebFrame::clipRenderToViewPort. Merge-request: 1103 Reviewed-by: Ariya Hidayat <ariya.hidayat@nokia.com>
* Merge AudioServices into mainline.Justin McPherson2009-08-0517-0/+1772
|
* Merge branch '4.5'Bill King2009-08-052-2/+0
|\ | | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsitem.cpp
| * Fix obsolete license headersJason McDonald2009-08-043-8/+6
| | | | | | | | Reviewed-by: Trust Me
* | Added the license header to the example.Denis Dzyubenko2009-08-042-0/+82
| |
* | Removed the QTapAndHoldGestureDenis Dzyubenko2009-08-045-8/+151
| | | | | | | | | | | | | | | | Moved the gesture implementation to the imageviewer example as it cannot be fully implemented in a crossplatform way - for example on Windows tap and hold is a system gesture that is transparent to the application. Reviewed-by: trustme
* | Modify imagewidget example so it works with new APIRichard Moe Gustavsen2009-08-041-31/+15
| |
* | Merge branch '4.5'Thiago Macieira2009-08-031-1/+4
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: src/corelib/tools/qsharedpointer.cpp src/corelib/tools/qsharedpointer_impl.h src/gui/dialogs/qcolordialog.cpp src/gui/painting/qwindowsurface_raster.cpp src/network/access/qnetworkaccessmanager.cpp tests/auto/qsharedpointer/externaltests.cpp
| * Musicplayer example crashes when trying to open unvalid fileRichard Moe Gustavsen2009-07-241-1/+4
| | | | | | | | | | | | | | Reason: Example tries to get media from QList with an index out of bounds. Nothing to do with Phonon. Task-number: 253307
* | remove constructors that are not usefulKent Hansen2009-08-031-2/+4
| | | | | | | | | | | | | | The constructors that take a list of target states produce hard-to-read code, and they're rarely useful in practice since 99% of transitions take a single target state; so it's better to enforce that setTarget{State,States}() be used instead.
* | Doc: Use new APIs in example and correct documentation regarding replacement.Volker Hilsheimer2009-07-311-2/+2
| |
* | Show open directory dialog for new gesture exampleRichard Moe Gustavsen2009-07-311-0/+3
| | | | | | | | RevBy: denis
* | fix two bugs in the custom script class exampleKent Hansen2009-07-302-3/+10
| | | | | | | | | | | | | | | | | | 1) fromScriptValue() needs to call qvariant_cast() on the data, in order to be symmetric with toScriptValue(). 2) use the overload of newFunction() that takes a prototype object, so that the prototype.constructor and constructor.prototype relationship is set up correctly; otherwise the instanceof operator won't work.
* | Fix compilation errors in examples and demos on VxWorks and QNX.Robert Griebl2009-07-296-6/+11
| | | | | | | | Reviewed-by: Harald Fernengel
* | Move sub-attaq from examples to demos because sub-attaq is a bitAlexis Menard2009-07-2872-6521/+0
| | | | | | | | too "advanced".
* | Remove tank game exampleEskil Abrahamsen Blomfeldt2009-07-2827-2396/+1
| | | | | | | | | | | | | | | | | | 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
* | Remove the close shortcut from the example since QMdiArea provides thisAndy Shaw2009-07-231-1/+0
| | | | | | | | | | | | | | | | | | Since QMdiArea provides this already via the standard keys, then we don't want to add it ourselves otherwise it triggers an ambigious shortcut on the platforms which already has CTRL+F4. Task-number: 161999 Reviewed-by: Kavindra Palaraja
* | Make QStateMachine inherit QStateKent Hansen2009-07-2212-37/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Remove Stickman editorEskil Abrahamsen Blomfeldt2009-07-217-437/+0
| | | | | | | | | | The editor was a just a detail to make the animations and shouldn't be included in the example.
* | Merge commit 'origin/4.5'Oswald Buddenhagen2009-07-201-1/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebCore/ChangeLog src/3rdparty/webkit/WebCore/generated/JSDOMWindow.cpp src/3rdparty/webkit/WebCore/page/DOMWindow.idl src/corelib/io/qdiriterator.cpp src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h tests/auto/qxmlquery/tst_qxmlquery.cpp tools/linguist/lconvert/main.cpp
| * Update the example TrafficInfo for GCC 3.3Benjamin Poulain2009-07-171-1/+3
| | | | | | | | | | | | | | The example TrafficInfo did not compile on GCC 3.3 due to a bug in the parser of GCC. Task-number: 258208
* | Add the "star" example, which demonstrates how to mix OpenVG and QPainterRhys Weatherley2009-07-207-0/+290
| | | | | | | | Reviewed-by: trustme
* | Update the documentation after the change in the completer exempleOlivier Goffart2009-07-171-2/+2
| |
* | Lets the size of the completer be configurable in a way similar to QComboBox.Frédéric Mercille2009-07-172-4/+23
| | | | | | | | | | Merge-request: 884 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
* | Doc: show warnings about unrecognized or unsupported devices in the statusVolker Hilsheimer2009-07-161-8/+25
| | | | | | | | | | | | | | bar where TabletPC users can also see them. Fixes: task 216859 Rev-by: TrustMe
* | And again in the examplesThiago Macieira2009-07-163-3/+3
| |
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtPeter Hartmann2009-07-1510-22/+19
|\ \
| * | Make the mainwindow examples use setWindowFilePathNorwegian Rock Cat2009-07-146-18/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should have done this a while ago. Use setWindowFilePath to get proxy icons on mac and simplify window title handling on the other platforms. The only downside is that we do have to specify the application name to get the exact same behavior. But on the other hand, QSettings handlig is a bit better.
| * | make examples/activeqt/webbrowser work on Windows CEJoerg Bornemann2009-07-133-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | This example only worked on desktop Windows and Windows mobile. Windows CE uses the same GUID for the Internet Explorer ActiveX control like desktop Windows. Task-number: 255111 Reviewed-by: thartman
| * | general wording change for some file type namesFrederik Schwarzer2009-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - .ts file -> TS file - .qm file -> QM file - .ui file -> UI file + a handfull of typos I stumbled over Merge-request: 802 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* | | Merge branch 'master' of git://gitorious.org/qt/qtTobias Koenig2009-07-051113-2201/+4732
|\ \ \ | |/ /
| * | Refactored gesture apiDenis Dzyubenko2009-07-0282-14645/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewritten the api almost from scratch, making it simplier and more flexible at the same time. The current implementation will not have complex gseturemanager class inside Qt, but the QGesture base class, which represents both a gesture recognizer and a gesture itself with a set of properties. A set of common gestures that can use used in third-party applications (and in Qt itself internally) is supposed to be found in qstandardgestures.h, and a base class for user-defined gestures is in qgesture.h Gesture implementation for Pan on Windows7 has also been added as a reference implementation for platform gestures.
| * | These files don't have to have CRLF line-termination.Thiago Macieira2009-07-023-16/+14
| | | | | | | | | | | | The other files here don't, so I see no reason why these should
| * | Animation: fixed a NOTIFY signal name that was wrongThierry Bastian2009-07-011-6/+6
| | | | | | | | | | | | Also slightly updated a demo
| * | Made QPainter / OpenGL intermixing in hellogl_es2 work properly again.Samuel Rødal2009-07-011-0/+3
| | | | | | | | | | | | | | | | | | | | | Need to call syncState() to let the paint engine set depth clipping state parameters back to their OpenGL defaults. Reviewed-by: Trond
| * | examples: QString::fromUtf16() -> QString::fromWCharArray()Marius Storm-Olsen2009-07-011-1/+1
| | | | | | | | | | | | | | | Merge-request: 604 Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
| * | Doc: Documented the Move Blocks example.Geir Vattekar2009-06-291-4/+32
| | | | | | | | | | | | Reviewed-by: Andreas Aardal Hanssen
| * | Fix license headers after multitouch+gestures merge.Jason McDonald2009-06-2961-305/+305
| | | | | | | | | | | | | | | | | | | | | Commercial license headers belong in source packages only. The repo must have the pre-release license headers. Reviewed-by: Trust Me
| * | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtJason McDonald2009-06-291-2/+1
| |\ \
| | * | Make compile when -no-webkit is passed to configureBill King2009-06-291-2/+1
| | | |
| * | | Fix old/missing license headers from multitouch+gestures merge.Jason McDonald2009-06-2969-193/+398
| |/ / | | | | | | | | | Reviewed-by: Trust Me
| * | Cleanup includes in public headers.Bradley T. Hughes2009-06-261-0/+1
| | | | | | | | | | | | We don't want to pull in too much if we can avoid it.
| * | Don't build the pannablewebview example if webkit is disabledBradley T. Hughes2009-06-261-1/+4
| | |
| * | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-247-0/+372
| |\ \ | | | | | | | | | | | | | | | | Conflicts: src/gui/kernel/qapplication_x11.cpp