summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Fix touch gallery example crashes on exitHEADdevJani Korteniemi2022-01-041-0/+1
| | | | | | Task-number: QTBUG-40501 Change-Id: I8c51818e8846be3a2813ac2fa8871a9d75c22439 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
* Update 'dev' dependenciesAllan Sandfeld Jensen2020-05-122-6/+30
| | | | | | | Along with compile fixes Change-Id: I7fc6397df83d485fbc4714ead16e74bfd079c90f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Merge remote-tracking branch 'origin/5.14' into 5.15v5.15.0-alpha1Qt Forward Merge Bot2020-02-051-1/+1
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I208e2e1d8da2123359be0581c83557e862465247
| * Stop using QDateTime's locale-specific APIsEdward Welbourne2020-01-281-1/+1
| | | | | | | | | | | | | | | | Use QLocale's date-time APIs, instead. Task-number: QTBUG-80441 Change-Id: I75453a002e0eea299d0527c0fa9431dc8bc53c7f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | Adapt to new Connections syntaxUlf Hermann2019-10-205-7/+10
|/ | | | | | Change-Id: I299baf89f2530250a333736bb31f4ae470610176 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Make restoreMode on all Binding elements explicitUlf Hermann2019-10-041-1/+3
| | | | | | | The default is going to change in 5.15. Change-Id: Ib17500791476bd45ed2c7c3736186897fb63d7a0 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Eradicate Java-style iterators and Q_FOREACH and mark the module free of themMarc Mutz2019-07-152-16/+5
| | | | | | | | | | | | | ... and QLinkedList. Java-style iterators are scheduled to be deprecated, or at the very least banned from use in Qt's own implementation. Ditto Q_FOREACH. Ditto QLinkedList. Change-Id: I92eb5c22762b63cba45f8eaf717c1b7d458fcda4 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Andy Shaw <andy.shaw@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: Add missing dots (qtquickcontrols)Paul Wicking2018-06-191-1/+1
| | | | | | Task-number: QTBUG-68933 Change-Id: I3731b82ecae0a43878b694e681300bef7c36ea62 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Extras: fix remaining createRadialGradient() issuesMitch Curtis2018-05-291-1/+1
| | | | | | | | | | be4c4877b35ad1b6983cf194e61f0dad1d123af5 fixed Context2D's createRadialGradient() function, so our usage of it has to be updated accordingly. This patch produces the same visual result as it was originally. Change-Id: I4c021dcb2db9303d0a4d6ae8ca4cc606ca1f6d67 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* extras/gallery example: Use layout alignment in Dial pagev5.11.0-beta2Friedemann Kleint2018-02-261-4/+4
| | | | | | | | | | | | Replace 'anchors' by the 'Layout.alignment' attached property, fixing numerous warnings: qrc:/qml/gallery.qml:137:17: QML Dial: Detected anchors on an item that is part of a layout. This is undefined behavior. qrc:/qml/gallery.qml:151:17: QML Text: Detected anchors on an item that is part of a layout. This is undefined behavior. qrc:/qml/gallery.qml:103:17: QML Dial: Detected anchors on an item that is part of a layout. This is undefined behavior. qrc:/qml/gallery.qml:124:17: QML Text: Detected anchors on an item that is part of a layout. This is undefined behavior. Change-Id: Iaf5b8f16e477ecd8e7598e857de0fc16e7b53d53 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Fix typosJarek Kobus2018-02-132-2/+2
| | | | | Change-Id: I7425013eb53a9fb5866c748944dda029ce7edd43 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Merge remote-tracking branch 'origin/5.10' into devLiang Qi2017-12-015-14/+38
|\ | | | | | | Change-Id: Iadff14f78c9d4b5aca9cba8a2728c10b7963d8fc
| * Merge remote-tracking branch 'origin/5.9' into 5.10v5.10.0-beta4Liang Qi2017-10-302-6/+26
| |\ | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: Ia33462a31303ae79f7a6ef26dc6065a0afeef3e1
| | * Fix outdated FDL license headerKai Koehne2017-10-182-6/+26
| | | | | | | | | | | | | | | Change-Id: I03c222a72490959d55b3077a6282553a4bfcf7d2 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
| * | Doc: add documentation to Dashboard examplev5.10.0-beta2Nico Vertriest2017-10-112-6/+10
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-60648 Change-Id: I79b9fdfde18041d95b7aa422bfb4d188ed907589 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * | Example: Update to the new QObject::connect syntaxVenugopal Shivashankar2017-09-121-2/+2
| |/ | | | | | | | | | | | | | | | | | | The QSortFilterProxyModel-based proxy model forwards the rowsInserted and rowsDeleted signals. Task-number: QTBUG-60631 Change-Id: I51a46cd13a89ea22b8bb4807821b3f21f6893b19 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* | Replace Q_NULLPTR with nullptrKevin Funk2017-09-261-1/+1
| | | | | | | | | | Change-Id: I43296a94e6242a9e77039a0369e3a2292891fec7 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | Replace Q_DECL_OVERRIDE with overrideKevin Funk2017-09-221-2/+2
|/ | | | | Change-Id: I39eb6cd5c6be80b14597b666c6fee05978be26ce Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* remove bogus QTPLUGIN+=qsqlite magicOswald Buddenhagen2017-05-291-2/+0
| | | | | | | | | | the code was originally meant to link the plugin if it's not built into qtsql. this logic did not survive the various build system refactorings, but it's also entirely pointless, because available static plugins are now automatically linked. Change-Id: I85039dbb123ab4fa1089b898041ab6d3ddb2e44c Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* texteditor example: Fix path to editpaste iconv5.9.0-beta4Friedemann Kleint2017-05-041-1/+1
| | | | | | | | | Drop prefix so that it can be found from either resources or files. Change-Id: Ib9dcab86f22bff0f8a3d7f0f22aa35d717b3569f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
* Fix sqlite detectionLars Knoll2016-09-121-1/+1
| | | | | | | There is now a sql-sqlite feature in qtbase that should get used. Change-Id: I8abc60bec5c0fa64d180150c598f0a6605844473 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-08-271-0/+6
|\ | | | | | | | | | | | | Conflicts: tests/auto/qquicktreemodeladaptor/tst_qquicktreemodeladaptor.cpp Change-Id: I0b6018fdac65a5385136e4c3561fba1c52ecd32e
| * texteditor example: check if document is null before using itMitch Curtis2016-08-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | This hasn't been an issue so far probably because those properties were accessed after m_doc had been set. However, adding some debug text can trigger a crash: Text { text: "document.cursorPosition=" + document.cursorPosition } Change-Id: Ib468815cdc0b103a2384457ab937cc3b764b96c8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-05-10196-5/+272
|\ \ | |/ | | | | | | | | | | | | Conflicts: examples/quickcontrols/extras/flat/main.cpp src/controls/Private/qquickcontrolsettings.cpp Change-Id: I9eb9342a2ee994611f3cb18daab6dd89eb924ccc
| * fix example installsOswald Buddenhagen2016-04-28196-5/+46
| | | | | | | | | | | | | | this includes renaming the first-level subdir of examples/. Change-Id: Idf14164533c247e5c0cc5acdb405ac97f7c33ac5 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
| * Specify the full path to the Flat style when static so it is foundAndy Shaw2016-04-211-0/+5
| | | | | | | | | | Change-Id: I4346044debdf2301f221186b60798307c563c336 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | Add support for QT_QUICK_CONTROLS_1_STYLEJ-P Nurmi2016-04-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Takes priority over QT_QUICK_CONTROLS_STYLE to allow specifying system wide style name preferences separately for Qt Quick Controls 1 and 2. [ChangeLog][Controls] Added support for a QT_QUICK_CONTROLS_1_STYLE environment variable, which takes priority over the existing variable QT_QUICK_CONTROLS_STYLE. This allows specifying system wide style name preferences separately for Qt Quick Controls 1 and 2. Change-Id: I0e40c2790c24b7ef66b1995b8337e573bb2f75a2 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.0-beta1Liang Qi2016-04-084-1/+0
|\ \ | |/ | | | | Change-Id: Ic78345c599719f3dd80b1d6a6004d46a085da4af
| * Remove redundant qDebugTimur Pocheptsov2016-04-051-1/+0
| | | | | | | | | | | | | | Task-number: QTBUG-52348 Change-Id: If1cef668626fbf5616b5fbb3e60233f3935334cd Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
| * Purge sRGB chunks from PNGs in examples.Edward Welbourne2016-03-223-0/+0
| | | | | | | | | | | | | | | | Subjects each *.png file that matched grep -law "sRGB" to: pngcrush -ow -brute -rem allb -reduce Change-Id: Ib0587ac336d8e68dd206872b611b23f8baa9154e Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
* | Move Qt Quick Layouts to qtdeclarative repoJan Arve Saether2016-02-267-242/+0
| | | | | | | | | | Change-Id: Ia82322488e804ba40d4c91d0bc7e6431ebe973be Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* | Unify license header usageAntti Kokko2016-02-041-5/+5
| | | | | | | | | | | | | | Updated FDL license headers Change-Id: I867e7f1cb551f2141a4344d505bbf5d694df4720 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* | Unify license header usageAntti Kokko2016-02-0487-261/+1131
|/ | | | | | | Updated BSD license headers Change-Id: I73d67dbc6dbbe7c58d2b9c301b46fb6163243095 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* calendar example: don't derive from unused QSqlQueryModel base classMitch Curtis2016-01-072-4/+2
| | | | | Change-Id: I4727e33fd8578b7032984d358d37cd7103949580 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Example: Update the textArea to reflect the color changeVenugopal Shivashankar2016-01-061-1/+1
| | | | | | | | | | | The DocumentHandler.textColor property is set to colorDialog.color in the onAccepted handler. The safest way is to bind the two properties instead of depending on the onAccepted handler. Task-number: QTBUG-36593 Change-Id: I589ab3b3f8e8189199740d896ebae3717d5022b3 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.5' into 5.6Liang Qi2015-08-281-1/+1
|\ | | | | | | Change-Id: Ie81aa6abe8a4acbd201e4938f0cb693a8b3aa567
| * calendar example: disable linking to a SQL driver that isn't a plugin.Mitch Curtis2015-08-211-1/+1
| | | | | | | | | | | | Change-Id: I9c73dc3714af2e200a1acee57cf38ffbb4126a22 Task-number: QTBUG-44443 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* | Make examples return -1 on load failures.Friedemann Kleint2015-08-2512-1/+24
| | | | | | | | | | | | | | | | Avoid hanging processes and empty windows in case some module is not installed. Change-Id: Ib220a6251076fd1fdbd126524a723d5c3f94bfb9 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* | filesystembrowser: Improve example by exposing model rolesGabriel de Dietrich2015-08-072-3/+13
| | | | | | | | | | | | | | | | | | | | | | This is one of the biggest API shortcomings we currently have when exposing C++ models to QML. The least we can do is make our examples more readable, and hint the users how to make their apps a bit better. Change-Id: I25f51ef393bbd0c9bf7bab48b705a672881d80c1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | TreeView: Add rootIndex propertyGabriel de Dietrich2015-07-272-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Its purpose is the same as QAbstractItemView::rootIndex and allows to display only the part of the model data that is descendant of this index. The filesystembrowser example has been updated to only show files reachable from the user's home directory. [ChangeLog][TreeView] Added rootIndex property Change-Id: Ib8d9af4ce9d1f341ab509de3cc991773830ba9f4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devGabriel de Dietrich2015-07-222-2/+101
|\ \ | |/ | | | | Change-Id: I689c18ad192a38581d3058e2a555d6438a8d08e2
| * Polish the new filesystembrowser example.Friedemann Kleint2015-07-162-2/+101
| | | | | | | | | | | | | | | | | | | | | | Introduce a special model that provides more information. Replace numerical permissions column by a readable, ls-style string and add size/date columns. On activation, launch the file using Qt.openUrlExternally() with the local file URL. Change-Id: Ic0801e40cc3ad8498129da06670ba7e11bbf8003 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-06-291-9/+0
|\ \ | |/ | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I8a32df546611d7a8105ad31ed72f54dbac0b1250
| * filesystembrowser: Remove debugging outputGabriel de Dietrich2015-06-291-9/+0
| | | | | | | | | | Change-Id: I0722f4a7970623544124a5b1b75abb5b1221d637 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* | Say hello to StackLayoutJan Arve Saether2015-04-131-1/+24
|/ | | | | | Task-number: QTBUG-44077 Change-Id: I85dadc0950617728bca83d5c72ed5a086352b57d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add DejaVu Sans license to dashboard example.Mitch Curtis2015-04-071-0/+99
| | | | | | Change-Id: I0a5afbf82df8d70f63cae57358cc2d2148d52825 Task-number: QTBUG-45148 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* texteditor example: implement file savingShawn Rutledge2015-03-203-3/+51
| | | | | Change-Id: I7c8321089d9187aeb0093d0c0361950385b92cba Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
* FileDialog: expose several QStandardPaths in the shortcuts propertyShawn Rutledge2015-03-181-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | QStandardPaths::PicturesLocation is a specialized kind of file URL on iOS; if this folder is set, then when the dialog is opened, it will be the new dialog helper which uses the native picture gallery picker interface. This will always work, so we do not need to check whether the path exists. The application developer needs to have a way to get that platform-specific (and odd-looking) URL by name, so the FileDialog.shortcuts property is now public API: a map from programmatic names (similar to those in QStandardPaths) to URLs. But DefaultFileDialog.qml should not display the names from this map, because they are not translated to the user's language. So __shortcuts is added as a private property providing a map from programmatic name to an object containing the translated name and the URL. This makes possible setting FileDialog { folder: shortcuts.pictures } which will open the special image gallery browser on iOS; and several other paths from QStandardPaths can be set in the same way. [ChangeLog][QtQuick.Dialogs] added FileDialog.shortcuts to enable setting the starting folder to a standard system path. Setting folder to shortcuts.pictures will result in a special image gallery dialog on iOS. Change-Id: I14f04712eb4f44ff422ac91a8720b9e3ff8fb920 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
* Examples: Adding ui forms exampleThomas Hartmann2015-03-1613-1/+1140
| | | | | Change-Id: I36ee43ff94e72ca22af597cea11c13bdae683678 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
* Merge Extras' styling system into Controls'.Mitch Curtis2015-03-0217-32/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removes the duplicated style settings functionality in Extras and simplifies the installed styles directory structure. - Extras' Base style is now part of Controls' Base style, eliminating the need for a separate QtQuick.Extras.Styles import. The cost of doing this should be negligible: a few QML files and two images. If we didn't merge Extras' Baste style into Controls', we'd need extras-specific code in qquickcontrolssettings, as the default style search path is: qml/QtQuick/Controls/Styles/ Whereas the Extras Base style would be in: qml/QtQuick/Extras/Styles/ The Extras Base style can't go into Controls' Base style directory, either, because otherwise we'd have two qmldir files there. The Flat style doesn't have this problem because it is all contained in one plugin and gets installed into its own Flat/ folder. - Documentation now lists the Extras controls as \since QtQuick.Extras 1.4. - Adds the customcontrolsstyle auto test to ensure that custom styling is tested. Change-Id: I19ca7a8b7e1c1daa85b272f4ccf9a2f05c76e0d9 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>