aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Use UTF-16 literals where possibleFriedemann Kleint2019-12-022-5/+5
| | | | | | | | This should minimize diffs to Qt 6. Change-Id: I4ba077ebec3b1d76f822b74328ab55235d1ee11a Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: André de la Rocha <andre.rocha@qt.io>
* Reduce QList usageFriedemann Kleint2019-11-202-2/+2
| | | | | | | | Prepare for migration to Qt 6 by using QVector where possible or auto. Change-Id: I7ee34e15a2ca534343ee5684ae24aadc0945eed9 Reviewed-by: André de la Rocha <andre.rocha@qt.io>
* Music player: Fix progress and thumb nail toolbarFriedemann Kleint2019-10-223-5/+26
| | | | | | | | | | A valid window handle must be set for this to work. Delay this until QWidget::show() and add documentation. Fixes: QTBUG-79348 Change-Id: Ib7db9568e0d70cb6194176f2da95a3b2087e403f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Fix clang warnings about repetitive type namesFriedemann Kleint2019-06-042-3/+3
| | | | | | | | Fix warning like: warning: use auto when initializing with new/reinterpret_cast to avoid duplicating the type name [modernize-use-auto] Change-Id: I46919c041f6a217e098b82c9f7f6548e0a0a9ec5 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Replace typedef by 'using' or QOverloadFriedemann Kleint2019-06-041-1/+1
| | | | | | | Fix clang warnings about typedef. Change-Id: Ife4540cd114566af7822af8f6d3d4d991d1194de Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Introduce nullptrFriedemann Kleint2019-06-051-4/+4
| | | | | | | | Apply Fixits by Qt Creator. Introduce more member initialization. Change-Id: I81c6860188f0e1592c4df2435ff7f91500456741 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Fix some clang-tidy warningsFriedemann Kleint2018-07-251-13/+11
| | | | | | | | | | | - Fix 'if (foo) delete foo' to 'delete foo' - Use ' = default' for trivial constructors/destructors - Use range based for where possible - Fix invocations of static methods - Replace some reinterpret_cast by static_cast Change-Id: I998572f370f3e8a1fc39e6c763e941d5a2f598b0 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Merge remote-tracking branch 'origin/5.10' into devLiang Qi2017-11-2010-16/+86
|\ | | | | | | Change-Id: I74a06808463f12488fe19b3e9ec7d1c20ac529b4
| * Fix outdated BSD license headerKai Koehne2017-09-297-7/+77
| | | | | | | | | | Change-Id: I93fe6c2f2008867eab0127bd0eb1b4e9fc968fdd Reviewed-by: Jake Petroules <jake.petroules@qt.io>
| * Fix outdated FDL license headerKai Koehne2017-09-293-9/+9
| | | | | | | | | | Change-Id: Ic862ca99a27ff61d2654001ff4d9c17eceade472 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* | Revamp Qt Windows Extras examplesAndre de la Rocha2017-11-015-39/+56
| | | | | | | | | | | | | | | | Use nullptr, member initialization, new connect syntax, QStringLiteral, etc. Change-Id: I1404701fcc227f8133bc22548ea1cee02eab4ed9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
* | Clean up code checking the Windows versionFriedemann Kleint2017-09-281-1/+1
| | | | | | | | | | | | | | | | Use QOperatingSystemVersion or remove code for version < Windows 7. Change-Id: I080778255f1427d79bceb77a2fa39728c538ec40 Reviewed-by: Andre de la Rocha <andre.rocha@qt.io> Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* | Replace Q_NULLPTR with nullptrKevin Funk2017-09-261-1/+1
|/ | | | | Change-Id: Ia07741ad7ee5174c03b12d6880e00d279a6d4eae Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Merge remote-tracking branch 'origin/5.8' into devv5.9.0-alpha1Liang Qi2017-01-2512-13/+2
|\ | | | | | | | | | | | | | | Conflicts: .qmake.conf src/imports/winextras/qquickjumplist.cpp Change-Id: I2272b873c872bbabf7e274a478e3d16b92cdb434
| * Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-11-2612-13/+2
| |\ | | | | | | | | | | | | | | | | | | Conflicts: examples/winextras/musicplayer/main.cpp Change-Id: I3838d6c802e4e95d4f8985f61d8b24692b2ec916
| | * Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-09-1612-13/+2
| | |\ | | | | | | | | | | | | Change-Id: Iecb2c1d98cc8fc731351e56814a6f4b4cb98458f
| | | * Clean up Qt logos in player examplesFriedemann Kleint2016-08-0512-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unused images and resource files. Add new logo .ico files. Task-number: QTBUG-55137 Change-Id: I75148b1965fee4bbd7157c5fdb89d04666b2c89d Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | | | Remove foreach from tests and examplesFriedemann Kleint2016-12-221-2/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | Replace by range based for loops. Amends change 13604e3fcc12a536d228f415ce65ca1c86b7015b. Change-Id: Ie0712c6fd1743bc7ca8345de58b49a08e1f69653 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* | | Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-08-022-46/+233
|\| | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: Id7890339704dcb0670fd67e66973cea0b643cab1
| * | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-08-012-46/+233
| |\| | | | | | | | | | Change-Id: I85afc39028bdbdca089efca59290f231bc413e7c
| | * Polish and extend the image extractor exampleFriedemann Kleint2016-07-142-46/+233
| | | | | | | | | | | | | | | | | | | | | | | | - Use QCommandLineParser. - Add an option to extract shell icons via SHGetFileInfo(). Change-Id: I9d1040a7311c205b9c16e4e406996278a53e5f53 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* | | Polish the player example.Friedemann Kleint2016-05-315-73/+158
|/ / | | | | | | | | | | | | | | | | | | | | | | - Port it to use URLs and mime types. - Introduce QCommandLineParser. - Resize according to screen size. - Add some bells and whistles, set window file paths, always display duration and file name, handle drop. Change-Id: I75aa101d32cfde0c0c75a0686a50c2d7d5dce827 Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.0-rc1Liang Qi2016-05-191-0/+3
|\| | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I80957f4153719692cf2deede03ad09634c702fea
| * add missing example installOswald Buddenhagen2016-05-101-0/+3
| | | | | | | | | | Change-Id: I9513901d7b57ca396501cda4c8ac77ab682fc768 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.0-beta1Liang Qi2016-04-087-0/+0
|\| | | | | | | Change-Id: I0ce2094980fbd70c017fea7748cbc5c224d974cc
| * Purge sRGB chunks from PNGs in documentation.Edward Welbourne2016-03-222-0/+0
| | | | | | | | | | | | | | | | Subjects each *.png file that matched grep -law "sRGB" to: pngcrush -ow -brute -rem allb -reduce -force Change-Id: I590cccca47afccc883fe8fa347976133465c87f9 Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
| * Purge sRGB chunks from PNGs in examples.Edward Welbourne2016-03-225-0/+0
| | | | | | | | | | | | | | | | Subjects each *.png file that matched grep -law "sRGB" to: pngcrush -ow -brute -rem allb -reduce Change-Id: I06f71d612c71cc14477f657cccf01b6e1c263f7f Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
* | Updated license headersAntti Kokko2016-01-191-16/+33
|/ | | | | | | | | | From Qt 5.7 -> examples are lisenced under BSD license, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new BSD header instead of LGPL21 one (in those files which will be under BSD) Change-Id: I6e669657ee947c10c6cee70eeb50eaf78ba127c8 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Update copyright headersv5.5.0-alpha1Antti Kokko2015-02-1611-53/+53
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: Ia5781193927251d6b6786f53a9b1cfba9e6d0782 Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Use Qt 5 signals & slot syntax.Friedemann Kleint2014-12-172-28/+33
| | | | | Change-Id: I548076eebc2c8f1204ef76bb4e6e09ed00352553 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Update license headers and add new license filesAntti Kokko2014-08-241-19/+11
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: I4852e1e3fb306319e63d919675acad9a64e43db6 Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* QuickPlayer example: Return when object creation fails.Friedemann Kleint2014-06-301-0/+2
| | | | | | | Fixes a hang when the multi media module cannot be loaded. Change-Id: I996df78742ee493a46c39078c5c562c913536323 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Polish the quickplayer example.v5.3.1stableFriedemann Kleint2014-05-262-3/+15
| | | | | | | | | | Use QStandardPaths::MusicLocation for the file diag; improve arguments handling. Task-number: QTBUG-36730 Task-number: QTBUG-37203 Change-Id: I7a133283c0d4acd521957a05066f9bb7f9d98b70 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Polish the musicplayer example.Friedemann Kleint2014-05-232-7/+9
| | | | | | | | | | Use QStandardPaths::MusicLocation for the file diag; improve arguments handling. Task-number: QTBUG-36730 Task-number: QTBUG-37203 Change-Id: Id408ad29e9d7b00eed0b230e43a7232777bb7afd Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Prefer to use normalised signal/slot signaturesv5.3.0-rc1v5.3.0-beta1v5.3.0Sergio Ahumada2014-03-021-1/+1
| | | | | Change-Id: Ia5e8866274c6547b142d5b2e4b0309901676aa77 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Add Quick Player exampleJ-P Nurmi2013-11-0720-0/+384
| | | | | | | | | This is a simplified Qt Quick-based version of the Music Player example. Change-Id: Ica9da1b388ccbc4d22ae0dccecb8fbd2b270522a Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Change camel-case header <QWinFunctions> to <QtWin>Sze Howe Koh2013-10-291-1/+1
| | | | | | | | | | | Name the header after its namespace, to reduce the number of names developers must remember. Change-Id: I7b653886c1b504678d73117dfa4a9bfe2a2edbc4 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Remove obsolete examplesJ-P Nurmi2013-10-0818-1437/+2
| | | | | | | | | | | These examples were more like manual tests than examples. These features are now covered and documented in the music player example. Furthermore, corresponding manual test applications already exist. Change-Id: I28d857cd704e08a8ef5e6763d6403885119accba Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* A music player exampleJ-P Nurmi2013-10-0416-0/+907
| | | | | Change-Id: Ie28baa6373a8852b31137ed3c076ab4309d1c98f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Jump Lists: introduce "categories" & hide COMJ-P Nurmi2013-09-201-11/+8
| | | | | | | | | | | | | | | | | | | | QWinJumpList now has three built-in categories: Recent, Frequent and Tasks. In addition to that, user can add custom categories. A new type, QWinJumpListCategory, represents all these categories, providing access to items in the category. The former COM-like begin(), append(), commit(), abort() API has been replaced by a more property/ attribute-based API. The jump list automatically invalidates and lazily rebuilds itself behind the scenes. Furthermore, the API has been minimalized for now - restoring the application identifier as a full-fledged property is in the works. Change-Id: I623a658b4b1fcfc881006f67e2300acadb483c97 Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* QQuickDwm: use QtWin::WindowFlip3DPolicyJ-P Nurmi2013-09-161-1/+1
| | | | | | Change-Id: Ifa74acbf7cde330838b37505e18a5b7376116216 Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Revamp QQuickDwmFeaturesJ-P Nurmi2013-09-131-11/+11
| | | | | | | | | | Add missing change notifiers, fix property names vs. isFoo() accessor names, remove unused member variables, fix the event filter and add missing updates... Change-Id: Ie86a89dc1415ad082ac5c2e839245d55a446a1d4 Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Rename namespace QtWinExtras to QtWin.Friedemann Kleint2013-09-102-12/+12
| | | | | | | | | As discussed on mailing list. Change-Id: I7ef41d758730998e365d9e616118c4a7c811eebf Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Doc: Add images to QtWinExtras examplesTopi Reinio2013-09-064-0/+6
| | | | | | | | | | Link images of examples already used in the overview page to the example docs as well, and add a new image for the jumplist example. Change-Id: I09c00cff0bf4b0874f7f80eee93ce9e6d3842507 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* quickdwm example: remove broken & irrelevant taskbar buttonJ-P Nurmi2013-09-051-5/+0
| | | | | | Change-Id: I0f6bb8569ac8b4c3fc03be6f4876a6c1fe6905a4 Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Rename the QWinExtras namespace to QtWinExtrasJ-P Nurmi2013-08-282-12/+12
| | | | | Change-Id: I24cc4cfa5b51d14bc70a895d625c98e49af4537d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Rename QJumpList(Item) to QWinJumpList(Item)J-P Nurmi2013-08-131-4/+4
| | | | | | | | Follow the existing QtWinExtras class naming convention. All the other public classes are currently named QWinXxx. Change-Id: I2509961e280b9794547e7420b941469fc8cdd2fa Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Doc: Create documentation for Qt Windows Extras ExamplesTopi Reinio2013-08-084-0/+148
| | | | | | | | | | | | Initial documentation for the examples - A .qdoc file for each example (no detailed docs yet) - A new group page 'examples-qtwinextras' - Add examples section to module index page - New TOC entry 'Examples' for the QCH file - Fix example path in .qdocconf Change-Id: I2642e31e2eea361b47118b7b560d6c71d9780743 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Fix license headersSergio Ahumada2013-08-067-7/+7
| | | | | | Change-Id: Ibe5544297ee69e776e81dd39e61c99430fe1de0e Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Ivan Vizir <define-true-false@yandex.com>
* Revamp the jumplistsJ-P Nurmi2013-08-061-0/+1
| | | | | | | | | Follow Qt coding conventions, and also split the item to it's own .h & .cpp files for more pleasant maintenance. Change-Id: I1c8915c738a8697097a9ab66a0e47bdef8b892bd Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>