summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Modularize drag and drop documentationGatis Paeglis2012-10-191-1/+1
| | | | | | | | - Move dnd docs and examples out of QtDoc module to gui library in QtBase - Remove info related to Motif dnd since Qt5 doesn't implement it Change-Id: Id7eb4eb422f4294a36dd92709ce3007903371f03 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Fixed cube opengl exampleOliver Wolff2012-10-171-1/+2
| | | | | | | | | | | Proper variable initialization should fix crashs and black screens for that example. Task-number: QTBUG-27281 Task-number: QTBUG-27021 Change-Id: I538f233ea3c2faf6c1864c46be0d03828e92a110 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* Use organization name "QtProject" in examples.Friedemann Kleint2012-10-1610-17/+17
| | | | | Change-Id: Ibbe9517ccf81d25eccbdff98f7cfe8ff6ec485d2 Reviewed-by: hjk <qthjk@ovi.com>
* Change copyrights from Nokia to DigiaSergio Ahumada2012-10-152-4/+4
| | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I66d941a5fa7ed8046a3498686432450018a8dfaa Reviewed-by: Iikka Eklund <iikka.eklund@digia.com> Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Change copyrights from Nokia to DigiaSergio Ahumada2012-10-1538-77/+116
| | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ia683171b30b5bf7cedb56cc3087b4b68644a3da1 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Doc: Removed references to stale links.Jerome Pasion2012-10-131-5/+1
| | | | | | | The links are from the qt-webpages.qdoc and no longer exist. Change-Id: I8329032215fa77811117e2767bae745795b209cb Reviewed-by: Martin Smith <martin.smith@digia.com>
* Fix missing return in QtOpenGl/paintedwindow example.Friedemann Kleint2012-10-131-1/+1
| | | | | | Change-Id: I17da0e93bb7c1b0cdbb5b76035ec913cbc616608 Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
* Delete the QVariant ctors taking global Qt enum values.Stephen Kelly2012-10-102-31/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They have unexpected results in Qt 5 (the Qt::GlobalColor one works as expected in Qt 4, but was removed in Qt 5): QVariant v = QVariant(Qt::red); qDebug() << v; // QVariant(int, 7) v = Qt::red; qDebug() << v; // QVariant(int, 7) The correct way is to use: QVariant v = QVariant::fromValue(QColor(Qt::red)); The deleted constructors are the ones for which there is a class with an implicit constructor taking the enum, and that class is a built-in metatype. QLocale::Language and QKeySequence::StandardKey would also fit the description, but I can't include the header for QKeySequence as it is in QtGui, and I don't want to include the qlocale header in qvariant.h. Putting a QLocale::Language is probably very uncommon anyway. The QTextFormat test is doing the wrong thing, but the result isn't being tested. Added new tests which fail before the patch. Change-Id: Ia38a0784990f4d40ff7457a86daf58aabd4964eb Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
* remove superfluous include from echoplugin exampleJoerg Bornemann2012-10-081-1/+0
| | | | | Change-Id: I8a53c5e628e43796d7f4b53c311dd4d200527262 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Made cube example not use glActiveTexture.Samuel Rødal2012-10-021-2/+1
| | | | | | | | | We're setting the default texture unit anyway, and glActiveTexture would require resolving through QOpenGLFunctions. Task-number: QTBUG-24555 Change-Id: Id8d660baaa1532e7b8e623673f501703c76fac65 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QPA/Windows example: Set proper window flags, titles, names.Friedemann Kleint2012-10-012-4/+19
| | | | | | | | Do not leak windows. Change-Id: I3af29ce597742cbe6444208aa72443c0507819db Reviewed-by: Samuel Rødal <samuel.rodal@digia.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Added QGLPixelBuffer implementation using framebuffer objects.Samuel Rødal2012-09-273-7/+7
| | | | | | | | | | | Instead of having QGLPixelBuffer be a unusable stub implementation we deprecate it and implement it in terms of QOpenGLFramebufferObject. Framebuffer objects are anyway the recommended replacement for pixelbuffers in modern OpenGL, as the context switching overhead is avoided. Change-Id: Ia220c358ee92813e87981d297c51d84525010322 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* fix conflicting Visual Studio project names for Qt examplesJoerg Bornemann2012-09-2715-0/+30
| | | | | | | | | Loading examples.sln resulted in a cascade of error messages because Visual Studio doesn't allow projects of the same name in a solution. Now using QMAKE_PROJECT_NAME to give the projects distinct names. Change-Id: Ifd3a00311253e4b234ece936092649ce0f0869d8 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
* Remove CDE and Motif styles from qtbaseJens Bache-Wiig2012-09-277-31/+24
| | | | | | | | | | | | | | | | | It is time to clean up some of our legacy code. These styles have not been actively maintained for a long time and I think it is safe to say that they should no longer belong as part of the default distribution of Qt. We dont support any platforms based on CDE with our source packages. Note that even if we are removing these styles from the default distribution of Qt, applications that depend on them will still be able to bundle the existing (and unmodified) styles along with their own source code as we are not breaking compatibility. Change-Id: I1709630c20ba8e8088cd01628628d86856db57a4 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Fix compilation for Qt5: Avoid deprecated APIaavit2012-09-261-2/+1
| | | | | Change-Id: Iba11d33dd4d81ed1a460dd3237cd1bb9e1ace106 Reviewed-by: Jason Barron <jason.barron@digia.com>
* Compile fix: Avoid deprecated functionsaavit2012-09-261-6/+10
| | | | | Change-Id: Ia7592997640d51ed98fdfa1a5e59d35954a0ef61 Reviewed-by: Jason Barron <jason.barron@digia.com>
* Fixed instances of "to to" in qtbase.Samuel Rødal2012-09-242-2/+2
| | | | | | | Really it should just be "to". Change-Id: I7d0fff334bac3f0ac78adb8131e3bf3df1f1b242 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Use QStringList::join(QChar) overload where applicable [examples]Marc Mutz2012-09-238-22/+22
| | | | | | | | | | This is an automated change performing the following replacements: join\("(.)"\) -> join('\1') join\(QLatin1String\("(.)"\)\) -> join(QLatin1Char('\1')) join\(QStringLiteral\("(.)"\)\) -> join(QLatin1Char('\1')) Change-Id: I1d0c9782cc1522d937b930531720e32d4c8f7ce8 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-221286-11605/+11591
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: If1cc974286d29fd01ec6c19dd4719a67f4c3f00e Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Move examples to proper location.Frederik Gladhorn2012-09-2136-26/+2500
| | | | | Change-Id: Ib808f5d99cb8217f8786411b531fa5bc7fa5250a Reviewed-by: Martin Smith <martin.smith@digia.com>
* Move opengl/wid/net example docs to proper folders.Frederik Gladhorn2012-09-21183-1/+6093
| | | | | | Change-Id: I846439a9cf7ad965ed27a00f98dbc4ff97abe73b Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Martin Smith <martin.smith@digia.com>
* Doc fix: Fix references to snippets and examples.Jan-Arve Saether2012-09-203-3/+3
| | | | | | | | | | | Did a recursive search under examples\widgets\doc search criteria: "\snippet widgets/" replaced with: "\snippet " Change-Id: I795580f8d207088df543edd9ef3b7b76c5e30d69 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com> Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
* Doc: Use QStyledItemDelegate and frameless spinboxes in spinbox delegate exampleGeir Vattekar2012-09-183-5/+6
| | | | | | | | Task-number: QTBUG-18847 Change-Id: I5347a1028b6f45a60e43fb75f6d362efecb6880b Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Marius Bugge Monsen <marius@cutehacks.com> Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
* Fix tab navigation in windowflags exampleGabriel de Dietrich2012-09-181-1/+1
| | | | | Change-Id: Ia0e3087ea60262546cd1a21614591ad3626469d3 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Introducing NoDropShadowWindowHint window flagGabriel de Dietrich2012-09-183-3/+10
| | | | | | | | | | Added suppport on QCocoaWindow. Also we deprecate WA_MacNoShadow since it isn't used anywhere, and updated the 'windowflags' example app. Change-Id: Id0b453ba15a23b768b0615838597bca139f507ad Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* examples: Mark ctor's as explicitSergio Ahumada2012-09-1741-54/+54
| | | | | | | | | Make C++ class constructors that can be used with only one required argument 'explicit' to minimize wrong use of the class. Change-Id: Ida9f9c2f0c8608c35b0137b2512a6747afd69515 Reviewed-by: Mitch Curtis <mitch.curtis@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Doc: Fix snippet bug in Getting Started QtGeir Vattekar2012-09-131-7/+7
| | | | | | Change-Id: I9c8caabee4c6f6131a69851586ef992138beb211 Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
* Fix example includes for qdoc.Frederik Gladhorn2012-09-1176-929/+929
| | | | | | Change-Id: Ifa6a99db27ce51529489bf077a839a3107b524d2 Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
* Move gui example doc example images.Frederik Gladhorn2012-09-112-0/+0
| | | | | Change-Id: I01e0c3d51bcb01c66a3f6c7b2ba95f0c9999f4cb Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
* example: minor fix to gettingStarted - part5Sergio Ahumada2012-09-101-2/+2
| | | | | | | | Do not compare a QString to "". Instead use the .isEmpty() method. Change-Id: Ifda1361b2c288dd590f0294daacdf5e2d9241522 Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Geir Vattekar <geir.vattekar@nokia.com>
* Move tutorials to widgets.Frederik Gladhorn2012-09-09172-1/+1
| | | | | | | | | | | All of these are very QWidget centric. They cannot properly refer to the sources without being part of the widget module. This fixes around 300 qdoc errors. Change-Id: I5a7c2dbc10f7913f7b088d6a0ac81323b3c287ac Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* Make gui/math3d classes use float rather than qrealSean Harmer2012-09-073-51/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This corrects the mismatch between using floats for internal storage and qreal in the API of QVector*D which leads to lots of implicit casts between double and float. This change also stops users from being surprised by the loss of precision when using these classes on desktop platforms and removes the need for the private constructors taking a dummy int as the final argument. The QMatrix4x4 and QQuaternion classes have been changed to use float for their internal storage since these are meant to be used in conjunction with the QVector*D classes. This is to prevent unexpected loss of precision and to improve performance. The on-disk format has also been changed from double to float thereby reducing the storage required when streaming vectors and matrices. This is potentially a large saving when working with complex 3D meshes etc. This also has a significant performance improvement when passing matrices to QOpenGLShaderProgram (and QGLShaderProgram) as we no longer have to iterate and convert the data to floats. This is an operation that could easily be needed many times per frame. This change also opens the door for further optimisations of these classes to be implemented by using SIMD intrinsics. This needs to be applied in conjunction with https://codereview.qt-project.org/#change,33548 Task-number: QTBUG-21035 Task-number: QTBUG-20661 Change-Id: I9321b06040ffb93ae1cbd72fd2013267ac901b2e Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Command-line-only examples should not build as .app bundles on OSXShawn Rutledge2012-09-038-0/+8
| | | | | | | | It's confusing when you double-click it and nothing happens. Task-number: QTBUG-26976 Change-Id: I50c5625a41881bdbcbf29001197ed15da4ee0a28 Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
* Properly reflect format changes in calendarwidget example.Mitch Curtis2012-09-032-14/+30
| | | | | | | | | | This patch ensures that May 1st and the first Friday of each month also have their formats updated when the corresponding checkboxes are unchecked instead of just checked. Task-number: QTBUG-26936 Change-Id: Ib5f77daf8d9000eeb18663b2e07e4842a70d22b6 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* Don't reference widgets/widgets in example doc.Frederik Gladhorn2012-09-0124-571/+571
| | | | | Change-Id: Ie1fe516f75ca8c1b2233dc6bb2b887b55593e730 Reviewed-by: Martin Smith <martin.smith@nokia.com>
* Moved gui example documentation to the proper location.Samuel Rødal2012-09-014-0/+456
| | | | | | | Gui example documentation should be in examples/gui/doc/ Change-Id: I3cd196a2bb5d76b6e275f336b29a2ad1811159dd Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Added OpenGL example and documentation.Samuel Rødal2012-08-297-1/+443
| | | | | Change-Id: I2d9d4e52caf0a39fef9648d8a9e83a0c1328f650 Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
* Move address book example images to proper location.Frederik Gladhorn2012-08-286-0/+0
| | | | | Change-Id: Ib106445c7a68fb1a1fd2d2c6d568681d83b712c9 Reviewed-by: Martin Smith <martin.smith@nokia.com>
* Add missing examples from doc repo.Frederik Gladhorn2012-08-282-0/+85
| | | | | Change-Id: I145ae05a5e7348740f858bd2bdcb8d21d7a90d22 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* doc: fix linksFrederik Gladhorn2012-08-282-3/+3
| | | | | Change-Id: Ifb6363e35c5317b6b1d9fd5e53079b30753f0666 Reviewed-by: Geir Vattekar <geir.vattekar@nokia.com>
* doc: key -> uicontrolFrederik Gladhorn2012-08-271-1/+1
| | | | | Change-Id: I42e5e2dc2d7cf7030ee9bc7dfa97ddaa66958370 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* Remove mentioning of Phonon.Frederik Gladhorn2012-08-271-4/+3
| | | | | Change-Id: I78ce6d42ee043a35b520bf8567a1874cf8e2e43e Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
* Doc: replace occurrence of \starslash in widget docsAndy Nichols2012-08-231-1/+1
| | | | | Change-Id: I93c370e3d53b955057741bc3bf503e781fbb6244 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* change http example default URL to http[s]://qt-project.orgJeremy Katz2012-08-231-2/+2
| | | | | | | This example used to refer by default to qt.nokia.com. Change-Id: Iecb682d0deb6270da91baf26897d44b16b39d09e Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
* Doc: Fix snippet and example referencing widget examplesAndy Nichols2012-08-23101-1498/+1498
| | | | | | | | Widget examples were moved into a widgets subfolder, but qdoc references were not updated. Change-Id: Id2a4573e723745b9827c664c852807d6116f8f6d Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* Doc: change \menu to \uicontrol in application example docsAndy Nichols2012-08-221-10/+10
| | | | | | | \menu command has been replaced by \uicontrol in qdoc Change-Id: Ib105df58c565c96b34579720acb62fe64e7806c4 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* Making trivial snippets inlineGabriel de Dietrich2012-08-215-13/+47
| | | | | | | Change-Id: I8d8b5586579d3ee460b234b5a09462586ac1cfd0 Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com> Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* Moved a bunch of widgets example images from qtdoc to qtwidgetsJ-P Nurmi2012-08-2033-0/+0
| | | | | Change-Id: I46363e19051cca6f088f0ed6df1c9fd113b95fe7 Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
* Moving .qdoc files under examples/widgets/docGabriel de Dietrich2012-08-201300-57/+18815
| | | | | | | | | | Updated those .qdoc files to refer to the new relative examples emplacement. Images and snippets to be moved later. Also grouped all widgets related examples under widgets. Change-Id: Ib29696e2d8948524537f53e8dda88f9ee26a597f Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
* Doc: Add FOV to rogue example.Geir Vattekar2012-08-181-0/+49
| | | | | Change-Id: Ib0f4caad9bc828a94616466f303d879fc967970d Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>