summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Fixed noisy looking textures in Basic Drawing example with GL2 engine.Kim Motoyoshi Kalland2009-10-051-3/+2
| | | | | | | | | | | When running the Basic Drawing example with the GL2 paint engine and antialiasing enabled, textures looked noisy. When antialiasing was enabled, the example translated the painter half a pixel to get sharp lines. This caused the textures to be sampled at texel corners. Without linear interpolation, sampling textures at texel corners is unpredictable. The fix is to not translate the painter. Reviewed-by: Gunnar
* Fix compilation on Solaris.Thiago Macieira2009-10-051-3/+3
| | | | | | No semi-colons allowed after Q_PROPERTY. Reviewed-by: Trust Me
* Silence moc warning.Volker Hilsheimer2009-10-031-0/+1
|
* Compile Rogue example again after state machchine event type rename.Volker Hilsheimer2009-10-031-1/+1
|
* Demos and applications have a nice Qt logo when installed on SymbianEspen Riskedal2009-10-0246-46/+48
| | | | | | | | | | Added a line to the symbianpkgrules.pri files which includes an ICON if the TARGET.UID3 is defined. We should fix the application_icon.prf to handle ICON without UID3 situations more gracefully, but for now I reordered existing UID3s to be specified before the symbianpkgrules.pri includes. Reviewed-by: Aleksandar Babic
* doc: Fixed numerous qdoc errors.Martin Smith2009-10-021-1/+1
|
* Added support for -small-screen argument for Context2d exampleMiikka Heikkinen2009-10-021-1/+12
| | | | | | | | To improve screen real-estate utilization in small screen devices, added -small-screen command line argument to the Context2d application. Task-number: QTBUG-3296 Reviewed-by: Janne Koskinen
* Threaded Fortune server example: fix displayed IPPeter Hartmann2009-10-012-3/+14
| | | | | | | listen to the first non-local IPv4 address found, as in commit 5e3775ae4c5263a25e63868e8a3f16244e4dde02 Reviewed-by: Aleksandar Babic
* Compile fix for pbuffers under LinuxRhys Weatherley2009-10-012-1/+2
| | | | Reviewed-by: Sarah Smith
* Remove display lists and refactor ready for ES/ES2 portSarah Smith2009-10-016-168/+649
| | | | | | | | | Display lists, and a few other features dont work in ES/ES2. Refaoctor to allow redo of lighting and other non-fixed-function pipeline features. Also use QAnimation* classes instead of timers, and correct a few minor bugs (flipped texture). Include new screenshot (old one manifested bug). Reviewed-by: Rhys Weatherley
* Simplify code of states exampleThierry Bastian2009-09-301-42/+40
| | | | We're not using QGraphicsWidget any more
* Avoid warnings in the states exampleThierry Bastian2009-09-301-72/+63
| | | | We now have the animations directly added to the transition
* Cleaning up usage of examples/{examplebase,symbianpkgrules}.priJoão Abecasis2009-09-3017-35/+1
| | | | | | | | | | examplebase.pri was renamed to symbianpkgrules, but some project files were not updated to reflect the change. Since it doesn't make sense to have this in non-portable examples, the include is removed in those cases. Reviewed-by: Espen Riskedal
* Google Chat example: always bail out if SSL not availablePeter Hartmann2009-09-301-5/+5
| | | | Reviewed-by: Simon Hausmann
* Revert "Google Chat example: state that SSL is required"Peter Hartmann2009-09-301-15/+0
| | | | | | | This reverts commit 59623e45ee31892c9ef210f8d7e396ccb0fe31a5. A fix for the same problem had been pushed by Simon shortly before that one.
* Google Chat example: state that SSL is requiredPeter Hartmann2009-09-301-0/+15
| | | | | | | bail out if SSL is not supported; before it only showed "service unavailable", which was somewhat confusing. Reviewed-by: Tor Arne Vestbø
* Fix googlechat example when Qt is lacking SSL support.Simon Hausmann2009-09-302-2/+9
| | | | | | | | | | | Don't build the googlechat example if QSslSocket isn't available. And even then also perform a run-time check and display an error page if SSL is not available. This is because the login into Google Chat works through an https website. Reviewed-by: Jesper
* Introduce state machine event priority, make it possible to cancel eventsKent Hansen2009-09-291-2/+2
| | | | | | | | | | | | The priority specifies whether the event should be posted to what the SCXML spec refers to as the "external" (NormalPriority) queue, or the "internal" (HighPriority) queue. Delayed events are now posted through a separate function, postDelayedEvent(). That function returns an id that can be passed to cancelDelayedEvent() to cancel it. Reviewed-by: Eskil Abrahamsen Blomfeldt
* Recorrect formextractor example build break after updating 3rdparty/webkitJocelyn Turcotte2009-09-291-7/+7
|
* Fixes compileBill King2009-09-291-7/+7
|
* Correct the formextractor which was using removed QWebElement APIJocelyn Turcotte2009-09-281-7/+7
| | | | Reviewed-by: Kent Hansen
* Animations: updateCurrentTime now receives the currentTime as paramaterThierry Bastian2009-09-281-3/+3
| | | | Reviewed-by: Leo
* Make QSignalEvent and QWrappedEvent inner classes of QStateMachineKent Hansen2009-09-283-7/+7
| | | | | | | | | Those two classes are specific to the state machine framework, but their names were so generic that we felt they were polluting the Q-namespace. They are now QStateMachine::SignalEvent and QStateMachine::WrappedEvent. Reviewed-by: Eskil Abrahamsen Blomfeldt
* Use qDebug() instead of printf() when dumping the simplex matrix.Jan-Arve Sæther2009-09-251-0/+1
| | | | | | printf() does not work very well on windows, since it will not send the output to OutputDebugString(). This allows us to catch the output even if the program is configured without "CONFIG += console".
* Reuse animation in animatedTiles exampleLeonardo Sobral Cunha2009-09-251-30/+4
| | | | Reviewed-by: trustme
* Merge branch '4.5' of scm.dev.nokia.troll.no:qt/qt into 4.6Simon Hausmann2009-09-242-1/+2
|\ | | | | | | | | | | | | Conflicts: examples/webkit/formextractor/formextractor.pro mkspecs/features/qt.prf src/gui/painting/qpaintengineex.cpp
| * Fixed background scrolling in the SVG viewer example.Kim Motoyoshi Kalland2009-09-241-0/+1
| | | | | | | | Reviewed-by: Trond
| * Paint arrow on top of node, not underneath itEskil Abrahamsen Blomfeldt2009-09-231-1/+1
| | | | | | | | | | | | | | | | | | It looked strange that the node and its drop shadow was painted on top of the arrow. Flip the z-axis around to make sure the arrow is painted on top. Task-number: QTBUG-4544 Reviewed-by: Gunnar
| * Make sure fontextractor example is found by qtdemoEskil Abrahamsen Blomfeldt2009-09-231-1/+1
| | | | | | | | | | | | | | | | Qt Demo seems to assume the executable name is the same as the directory name, so change the name to all lower case to avoid getting the message that the example has not been built even when it has. Found by Black Team.
| * Update license headers again.Jason McDonald2009-09-08999-3996/+3996
| | | | | | | | Reviewed-by: Trust Me
* | AudioServices; Nicer examples.Justin McPherson2009-09-244-192/+82
| | | | | | | | Reviewed-by: Bill King
* | AudioService API changes; QString->const QString&, remove QAudioDeviceId use ↵Justin McPherson2009-09-246-32/+21
| | | | | | | | | | | | QAudioDeviceInfo. Reviewed-by: Bill King
* | Small change in the API of animationsThierry Bastian2009-09-231-2/+2
| | | | | | | | | | | | | | | | We're not taking a parameter in updateCurrentTime any more because that parameter was the total currenttime. So it was taking into account the currenttime and the currentloop at once. This was inconsistent Reviewed-by: Leo
* | Made hellogl example compile when GL_MULTISAMPLE is not defined.Samuel Rødal2009-09-211-1/+5
| | | | | | | | | | | | | | Also let the GL widget have sample buffers, otherwise using GL_MULTISAMPLE won't help much. Reviewed-by: Trond
* | Fixed a warning.Trond Kjernaasen2009-09-211-1/+1
| | | | | | | | Reviewed-by: Trust Me
* | Fix signal/slot connection bugRichard Moe Gustavsen2009-09-211-7/+2
| | | | | | | | | | | | A signal was renamed. Update the example to reflect this. Rev-By: Trustme. Example fix only.
* | Make the 'softkeys' example compile again after softkey changes.Jason Barron2009-09-211-6/+3
| | | | | | | | | | | | | | Change to the new API and remove one of the actions since it has no equivalent in the new framework. Reviewed-by: Alessandro Portale
* | Refactor soft keys implementation.Jason Barron2009-09-211-21/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Alessandro Portale Squashed commit of the following: commit dae5eda6996d48c12c4a5efd3f6042eb293bacbf Author: Jason Barron <jbarron@trolltech.com> Date: Fri Sep 18 10:32:26 2009 +0200 Only update soft keys when KEYPAD_NAVIGATION is enabled. For 4.6, let's just call these functions when keypad navigation is defined to minimize the impact on other platforms. They should probably get thier own define some day. commit 30a730553531f0f138de5eddb30413936a34fa36 Author: Jason Barron <jbarron@trolltech.com> Date: Fri Sep 18 10:30:23 2009 +0200 Add/remove the menu bar action when menu bar is added/removed. commit a83343a2870b34c228c8bc5e6274607b0e97baf6 Author: Jason Barron <jbarron@trolltech.com> Date: Fri Sep 18 10:28:55 2009 +0200 Compile fix for other platforms commit 39c9e3a0a1d3d62bf6ebd3212cfd2a81b86b9b2a Author: Jason Barron <jbarron@trolltech.com> Date: Thu Sep 17 21:37:59 2009 +0200 Fix 'softkeys' example after API re-factoring. Clean up this example and use the simplified soft key API. Now the actions are only allocated in the constructor and dynamically updated by calling addAction and removeAction. commit 314e45c33f40552db74e61755c2a3b0f8c77a41a Author: Jason Barron <jbarron@trolltech.com> Date: Thu Sep 17 21:30:32 2009 +0200 Re-factor and simplify the soft keys API. Several things here: - Move all the logic into QSoftKeyManager - Move the files into 'kernel' since it is not a widget - Remove QWidget::setSoftKey*(). Use addAction/removeAction instead - Made soft keys update on focus, window activation, and action changes. - Fixed several memory leaks where QAction's were created too often - QAction ownership pushed out to widget's - Added Select/Cancel soft keys for comboboxes and menus to be more consistent to platform look-and-feel. commit fb4c240d970262e9872dc5737df6808879143c75 Author: Jason Barron <jbarron@trolltech.com> Date: Mon Sep 7 15:49:31 2009 +0200 Merge the Symbian implementation with the other platforms nativeMenuBar It seems this has been refactored to share more code across the various platforms that support native menubars so the Symbian code can be mostly removed. commit aa55e4bcd1f009ab35c9519e18aa325fd212dd23 Author: Jason Barron <jbarron@trolltech.com> Date: Wed Aug 26 17:00:34 2009 +0200 Change filenames and move softkey stuff from 'widgets' to 'kernel'. This thing isn't a widget and therefore should not be in the 'widgets' subdirectory of gui. Also rename the files in preparation for refactoring and extending.
* | Make OpenGL overpainting example compile under OpenGL/ES 1.1Rhys Weatherley2009-09-212-5/+12
| | | | | | | | Reviewed-by: trustme
* | remove display lists and qt3d-ize overpainting/hellogl exampleSarah Smith2009-09-218-231/+549
| | | | | | | | | | | | | | | | On the way to making opengl examples portable, remove display lists and go to triangles only. Use QMatrix4x4. While on the job use Qt/3D stylee to make the QtLogo as an example of 3D programming more Qt-like. Reviewed-by: Rhys Weatherley
* | QGraphicsAnchorLayout: Set size policy in the exampleAnselmo Lacerda S. de Melo2009-09-181-0/+1
| | | | | | | | | | | | | | | | Set QSizePolicy::Preferred to all proxy widgets (after setWidgeT) in the QGraphicsAnchorLayout example to avoid "QSimplex: No feasible solution!" that occurs when all items are set with QPushButton's default size policy. Signed-off-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
* | QCursor support for Symbian OSShane Kearns2009-09-152-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-By: Jason Barron Reviewed-By: Alessandro Portale Summary: QT_NO_CURSOR is now not defined for symbian builds Existing QCursor APIs are all supported New public API, QApplication::setNavigationMode, to allow the navigation mode to be set. I.E. on an S60 3.2 phone, some applications will want a virtual mouse cursor (web browser), while others are designed for keypad navigation. Symbian HAL is used for detecting input capabilities. Fix DND, code cleanup & comment QCursor visibility now uses a refcount, and is called from DND and the setNavigationMode so they are both simpler and don't interfere with each other. QApplication::setNavigationMode New public API for configuring cursor/keypad navi style. This links in with ongoing work on the 4-way keypad navi branch, but 2-way and 4-way modes both act as 2-way mode until that is integrated Some of the demos/examples have cursor switched on (those that were not usable with keypad) Virtual mouse support for non touch, non mouse phones (tested on N78) add *.d and .metadata (carbide debug file / workspace dir) to .gitignore System pointers are unavailable when using sprite workaround, so the system cursor shapes are compiled into qtgui as resources. MAC port does this also for shapes that aren't standard on the MAC. Refactor Drag'n'Drop to use QCursor Add test case to check all system cursor shapes Simply a mainwindow containing a label widget for each cursor shape, with the cursor property set appropriately QCursor(QBitmap,QBitmap) supported Fixed problem with the image & mask being inverted when using the QCursor constructor that takes two mono bitmaps. add .make.cache files to .gitignore Correct implementation of QApplication::setOverrideCursor QApplication::restoreOverrideCursor and QApplication::setOverrideCursor are now working correctly on Symbian platform. Performance will be slower compared with other platforms, because the Symbian window server has a cursor associated with each native window. Add test case for custom cursors Create a pixmap cursor and associate it with a widget. No changes to production code, since test passed 1st time ;) Add manual test for QCursor Make cursor independent of construction order Updated to work around window server issue where contruction order affects what cursor is displayed in child windows. Also changed to effectiveWinId following review comments Also fixed a problem which would make qcursor not link if configured with QT_NO_CURSOR Moved some multiply declared extern functions from cpp to _p.h files Implemented Symbian versions of the cursor functions. Merged in work I'd done based on tower. Fill in bits of stub functions based on windows port Removed QT_NO_CURSOR from list of config options forced on symbian Recompiled configure.exe Added stub functions for the missing functions in s60 port
* | Add an example that shows strength animation QGraphicsColorizeEffect.Ariya Hidayat2009-09-148-1/+274
| | | | | | | | | | | | | | | | When a button is pressed, a popup message is shown and the background (everything, every items, behind the popup message) is faded to light green. Reviewed-by: Bjørn Erik Nilsen
* | Bring back the blurry drop shadow in the lighting example.Ariya Hidayat2009-09-141-1/+3
| | | | | | | | Reviewed-by: Bjørn Erik Nilsen
* | API change. This will get rid of the ugly setAnchorSpacing() method.Jan-Arve Sæther2009-09-141-52/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Say hello to QGraphicsAnchor, move the spacing (and removeAnchor) functionality over to that class. This also opens up for a cleaner API when we add support for size policies or min/pref/max sizes for anchors. Also remove - addLeftAndRightAnchors() - addTopAndBottomAnchors() - addAllAnchors() in favor of - addAnchors(itemA, itemB, Qt::Orientations) API change discussed with Caio and Andreas. Reviewed-by: Alexis
* | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Rhys Weatherley2009-09-142-4/+14
|\ \
| * \ Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Kurt Korbatits2009-09-144-35/+92
| |\ \ | | | | | | | | | | | | | | | | Conflicts: examples/multimedia/audio/audiodevices/audiodevicesbase.ui
| * | | AudioDevices demo doesn't do anything on WindowsKurt Korbatits2009-09-142-234/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -put example audiodevices in layout. -added more checking to testSettings() in win32 implementation. -disabled objects in example audiodevices that are not editable. -added more checking to alsa implementation for preferredFormat(). -changed internal strings from tr to QLatin1String. Reviewed-by:Justin Mcpherson
* | | | Don't have to glEnable(GL_TEXTURE_2D) when using shaders.Rhys Weatherley2009-09-141-4/+0
| |/ / |/| | | | | | | | | | | | | | | | | OpenGL/ES 2.0 systems were giving a GL error when GL_TEXTURE_2D was enabled and disabled. Reviewed-by: trustme
* | | Add platform specific libraries required to use OpenVG to star exampleIain2009-09-111-0/+1
| | | | | | | | | | | | Reviewed-by: Jason Barron