summaryrefslogtreecommitdiffstats
path: root/examples/widgets
Commit message (Collapse)AuthorAgeFilesLines
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-22745-7288/+7288
| | | | | | | | 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-219-0/+486
| | | | | Change-Id: Ib808f5d99cb8217f8786411b531fa5bc7fa5250a Reviewed-by: Martin Smith <martin.smith@digia.com>
* Move opengl/wid/net example docs to proper folders.Frederik Gladhorn2012-09-21109-1/+2206
| | | | | | 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-1729-40/+40
| | | | | | | | | 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>
* 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-09171-0/+10809
| | | | | | | | | | | 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-071-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* 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>
* 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>
* 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-201299-31/+83542
| | | | | | | | | | 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>
* qtbase: Add missing example installs and files.Friedemann Kleint2012-07-103-2/+16
| | | | | Change-Id: I071fd862e001b766c9fb13106242edf23a608663 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Make QCalendarWidget use its locale's firstDayOfWeek.Mitch Curtis2012-06-281-1/+4
| | | | | | | | | | | QCalendarWidget currently uses Qt::Sunday as the default first day of the week. It has been suggested that a better user experience would see the calendar's locale be used instead. Task-number: QTBUG-19811 Change-Id: I4441bf9ffd52213ef622a4a7f498530b7cc9e110 Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
* Update calendarwidget exampleGatis Paeglis2012-06-201-4/+4
| | | | | | | | Due to API changes introduced by ff55d64f6788563a6ef9da2b6d0b6dc23bb936aa Task-number: QTBUG-26130 Change-Id: I4e5bdf3dd81d75308a3e565239b9d7a95452cd43 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
* Fix building of qtbase examples when printsupport module is disabled.Janne Anttila2012-06-185-2/+10
| | | | | | | | | | | Printsupport module is not that interesting in embedded environments, and it also does not compile at the moment for WEC7. Fixed qtbase examples to obey the availability of printsupport module. Change-Id: I960d1b628b9ca82450aa3b0df8dd101b2544ee12 Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com> Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Fix encoding of non-ASCII stringsThiago Macieira2012-06-141-7/+7
| | | | | | | | | tr() only takes UTF-8 as input, so we must recode to UTF-8. But we can use QLatin1String elsewhere. Task-number: QTBUG-26086 Change-Id: I5932ddc96fb817dbe01106e5f6f2b10f58472d6b Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
* Change path for 'mousebuttons' widgets exampleGatis Paeglis2012-06-141-2/+2
| | | | | | | Task-number: QTBUG-26121 Change-Id: Icaeb6038d166fb0ffadf1657ddef21c18b3d3be6 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Remove useless "QT += widgets"Kent Hansen2012-06-051-2/+0
| | | | | | | | These .pro files have TEMPLATE=subdirs, so there's no reason to be adding libraries here. Change-Id: I0fb0a44107710ee746d354106d0c46006958ee62 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Examples: Don't use deprecated methodsOlivier Goffart2012-04-212-7/+7
| | | | | Change-Id: Ib6e795f6b5bb6a3ac19882a5fb224460ef1fc8ad Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* Compile fix if QT_NO_CLIPBOARD definedAndreas Holzammer2012-04-192-0/+13
| | | | | Change-Id: I818122f2b2d2119248ad2e84b138aab8ab621a41 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* examples: compile w/QT_NO_CAST_FROM_BYTEARRAY, at least on UnixMarc Mutz2012-03-082-4/+4
| | | | | | | | This is all pretty straight-forward, adding .constData() or using QString::fromLatin1() instead of QLatin1String(). Change-Id: I984706452db7d0841620a0f64e179906123f3849 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* Example build fix.Jędrzej Nowacki2012-03-071-0/+0
| | | | | | | | | | buttontester.pro has to be renamed to mousebuttons.pro because it lives in mousebuttons subdirectory, to which examples/widgets/widgets.pro is pointing by SUBDIRS variable. Change-Id: I04bbd85713321337fbe8cbccfa6284f12b677279 Reviewed-by: Rick Stockton <rickstockton@reno-computerhelp.com> Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* add widget mousebuttons example 'mousetester'.Rick Stockton2012-03-065-0/+321
| | | | | | | | | | This is an xev-like program. A user clicks a mouse button inside the Window, and the program displays (a) the "raw" button number; (b) the corresponding Qt::MouseButton name; and (c) the type of mouse Event. Task-number: QTBUG-24112 Change-Id: I8a76ff37b5b85639f662706072cc4a2ce490754b Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* clean up qmake-generated projectsOswald Buddenhagen2012-02-241-11/+1
| | | | | | | | remove "header" and assignmets which are defaults or bogus, reorder some assignments. Change-Id: I67403872168c890ca3b696753ceb01c605d19be7 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove Symbian specific code from qtbase.Xizhi Zhu2012-01-311-2/+0
| | | | | Change-Id: I27d37d914b71e1e43c94e2a975ffec49e1ecd456 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-30115-115/+115
| | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I311e001373776812699d6efc045b5f742890c689 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove support for the MNG file format and the bundled libmngaavit2012-01-254-4/+3
| | | | | | | | | | | | | The MNG file format is generally abandoned, and libmng has been unmaintained for several years. The MNG plugin and bundled libmng has been moved to the qtimageformats project on Gerrit. Task-number: QTBUG-21869 Change-Id: I946432347014ffde2b72307a5f8b166ca5553602 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Update contact information in license headers.Jason McDonald2012-01-23115-115/+115
| | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I431bbbf76d7c27d8b502f87947675c116994c415 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-05115-115/+115
| | | | | Change-Id: I02f2c620296fcd91d4967d58767ea33fc4e1e7dc Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* QtBase examples: Remove Maemo/Symbian-specific code.Friedemann Kleint2011-10-1872-1737/+1
| | | | | | | | | | | | | | | - Maemo/Symbian are no longer supported and QWidget-based examples are no longer supposed to run on mobile platforms, so, remove any Maemo/Symbian or mobile-specific code from source files and profiles. - Remove Maemo/Symbian vibration examples. - Change Q_WS_MAC/WIN to Q_OS_MAC/WIN where appropriate. Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com> Change-Id: I488a0adadb98934567aa6416206a80465c9c3a81 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* Merge branch 'master' into refactorGunnar Sletta2011-08-311-1/+1
|\
| * Compile fix on Mac OS XBradley T. Hughes2011-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | The file is called shapeitem.cpp (lowercase i), not shapeItem.cpp (with uppercase I) Change-Id: I0dd230158cf8c8323bfa779901475535e7c7d694 Reviewed-on: http://codereview.qt.nokia.com/3883 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* | Fix building of examples.Friedemann Kleint2011-08-254-2/+5
| | | | | | | | | | | | Change-Id: Iebb56c81fd13deaa82d8883e3f1529f1a78ebea8 Reviewed-on: http://codereview.qt.nokia.com/3603 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* | Merge branch 'master' into refactorGunnar Sletta2011-08-251-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gui/kernel/qapplication_qpa.cpp src/gui/kernel/qcursor_qpa.cpp src/gui/kernel/qwindowsysteminterface_qpa.cpp src/gui/kernel/qwindowsysteminterface_qpa.h src/gui/kernel/qwindowsysteminterface_qpa_p.h src/gui/text/qtextcontrol.cpp src/plugins/platforms/wayland/wayland.pro src/widgets/accessible/qaccessible2.h src/widgets/widgets/qwidgetlinecontrol_p.h Change-Id: I5e6f4eb184159dccc67e8f13673edb884d179c74
| * Support -qtnamespace and -qtlibinfix in qtbase examplesLiang Qi2011-08-081-0/+2
| | | | | | | | | | | | | | | | Task-number: QTBUG-19971 Change-Id: Ie20eb2fc133658dd34e1ec25a3b80c36f0f01aa3 Reviewed-on: http://codereview.qt.nokia.com/2754 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Liang Qi <liang.qi@nokia.com>