summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Fix calendardemo exampleChris Adams2020-11-022-5/+5
| | | | | Change-Id: I335707590afec9b39e7813c7a6acc2499fce22dd Reviewed-by: Christopher Adams <chris.adams@jolla.com>
* Prefer QDate::startOfDay() over QDateTime(const QDate &)Edward Welbourne2020-11-022-7/+6
| | | | | | | | | The latter is deprecated, the former does something sensible. Also use startOfDay() and endOfDay() rather than QTime(0, 0) or QTime(23, 59, 59). Change-Id: Id1bc510833bfd2274e9945ab24c16ae07f3bd14e Reviewed-by: Alberto Mardegan <mardy@users.sourceforge.net> Reviewed-by: Christopher Adams <chris.adams@jolla.com>
* Fix license headersChris Adams2018-07-2036-48/+48
| | | | | Change-Id: Id83e43ace82b9d5f32acb00bb4bda62736a6216f Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Replace Q_NULLPTR with nullptrKevin Funk2017-11-159-9/+9
| | | | | Change-Id: I0c21694591687cdee8b3f749a53c701e76fa42f1 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Fix licensingJani Heikkinen2017-05-0432-96/+416
| | | | | | | | | | Currently tests are licensed under GPL-EXCEPT, examples under BSD and src under LGPL so replase old license headers with new & proper ones. Also remove old & unused license files & add missing ones Task-number: QTBUG-57147 Change-Id: I07f7b555a3766ad1c4f57d662fc3326522885abe Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Compile public headers with GCC 6 -Werror=zero-as-null-pointer-constantThiago Macieira2016-06-159-9/+9
| | | | | Change-Id: I635e4116c1e4499fa1c5fffd144ee47d0674b1b3 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* Install QtOrganizer example applicationsChris Adams2016-06-152-0/+6
| | | | | | | | This commit ensures that the QtOrganizer example applications are installed to the Qt examples folder under pim/organizer. Change-Id: I30f47ca8eecea8385e1b587cdcf5b9ca53470a68 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
* Remove spurious execute permissions (qtpim).Edward Welbourne2016-06-151-0/+0
| | | | | | | Source code, PNG images and QDoc config files shouldn't be executable. Change-Id: I90ad2e14f2ae07c32519957806cb6a13d97e7b16 Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* More license test fixesAlex Blasche2015-04-1636-40/+36
| | | | | | | | | This change should have really been part of I4a4c08123be144a0f3c2c9ce987f5ce1e9ff8bb4 but resolving the conflicts across 300+ files is no fun. Change-Id: Ic14b52c6e27c1924419446b7f876954dc7bf1450 Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Update contact URLAlex Blasche2015-04-1636-36/+36
| | | | | | | QtProject is no more. Change-Id: I2b1d6ff8ed40deec419c51757a539b40cc78b42f Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Project files do not have a license headerAlex Blasche2015-04-161-26/+0
| | | | | Change-Id: I47a0d1af400a80497f414c1f32dee29a36fa0ff1 Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Fix licenses for QtPIMAlex Blasche2015-04-1636-221/+328
| | | | | | | | | | 1.) Use QtCompany in each header and update copyright year 2.) All tests are LGPLv21 (some test files were BSD) 3.) Convert doc snippet to BSD (some were LGPL) 4,) Convert example code from FDL to BSD Change-Id: I4a4c08123be144a0f3c2c9ce987f5ce1e9ff8bb4 Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
* Replace defaultCollection() with defaultCollectionId()Konstantin Ritt2015-02-121-2/+2
| | | | | | | | | | | This assumes the id of a default collection is known at the engine initialization time, but makes it possible to defer fetching the default collection's content up until it is needed. This also greatly simplifies the initialization process for the async-only engines. Change-Id: I5116ffdd22d7fa6cc5f8a8eed7f94518e6db7089 Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* Remove jsondb backendsMatt Vogt2014-06-161-1/+0
| | | | | | | The jsondb contact and organizer backends are unsupported. Change-Id: I6aa76c94b97edad20d43d777f75ec66f0400b65e Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* whitespace fixesOswald Buddenhagen2014-01-1910-21/+21
| | | | | | | remove trailing whitespace & expand tabs Change-Id: I7dd5aca1f157d7798227302b315bfb0e9f2e9f77 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
* Use the installed headersKonstantin Ritt2014-01-0822-32/+36
| | | | | | | | | | | This fixes synqt warnings about incorrect inclusions in public headers. Also deals with extra- and duplicate includes, forward declaration, namespacing issues, and circular dependencies... ...and Qt-ifies the headers after all. Change-Id: Ia373d6fb93e0fecedd2a2334fbeb4c2005a67a4c Reviewed-by: Michael Krasnyk <michael.krasnyk@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Added support to preferredDetails on QML Contact.Renato Araujo Oliveira Filho2013-07-262-6/+68
| | | | | | | | | | Expose all functions related to preferredDetails into QML contacts. Task-number: QTBUG-32515 Change-Id: I93491cd8ef25cecd891334c7bc17cbb52773acd8 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* make use of qtHaveModule()Oswald Buddenhagen2013-04-031-1/+1
| | | | | | | Change-Id: If8bf4d22042435ebce01a8116e771642abed42b6 Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Laszlo Papp <lpapp@kde.org>
* Adjust QT*_{BEGIN,END}_NAMESPACE macroSergio Ahumada2013-03-2610-20/+20
| | | | | | | | Changed to QT_{BEGIN,END}_NAMESPACE_* to match syncqt and tst_header's checks. Change-Id: If41721bf6be1294c9e0068af74917afc246603e9 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Removed deprecated APIs.Xizhi Zhu2012-10-301-2/+2
| | | | | Change-Id: Ie5de6970811f9c3dd6500bdac9abe04d31df6caa Reviewed-by: Xizhi Zhu <xizhi.zhu@gmail.com>
* Prepare removal of Softkeys APIJan Arve Saether2012-10-2911-73/+0
| | | | | | Change-Id: Ia68bdf1033717ecfc7e72cf2c24a85d0a4a1273f Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Qt Contacts: Added reference pages and polished documentationJerome Pasion2012-10-101-0/+38
| | | | | | | | | -added \qmlmodule and \module pages -fixed landing page's links -added documentation page for Qt Contacts' example. Change-Id: Ie2e63382afef8318e79543409b4c6b589f794079 Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
* Qt PIM: Fixed examples' .pro filesJerome Pasion2012-09-293-4/+6
| | | | | | | | | -took out QML example from .pro because testing QML projects in the CI is not possible Change-Id: I753169d764bcb56432e14e7d9994c11c23de6c99 Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Alex <ablasche@gmail.com>
* Qt Versit: Modularized documentationJerome Pasion2012-09-2543-9/+499
| | | | | | | | | | -added depends in qdocconf to Qt Contacts and Qt Organizer -moved snippets -moved documentation (including vCard information) -removed examples in examples.pro Change-Id: I9411dadef23f2631b02dc015a49c8eb0f73890fa Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-2433-270/+270
| | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I2d9a4538442adcebf58fe50bf47c5e5c8b3b526a Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Qt Contacts: Modularized examples and examples documentationJerome Pasion2012-09-1737-1784/+4
| | | | | | | | -Moved examples' documentation out of doc/src -Deleted malfunctioning QML Contacts example Change-Id: I5ca92fedafe182916a7d66dbe01633f125df5f3c Reviewed-by: Geir Vattekar <geir.vattekar@nokia.com>
* Cleaning up old keywords from documentationikause2012-06-137-7/+7
| | | | | Change-Id: I965d91bcb79f7167fc0248fe7b0ef083e333005d Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Fix compilation of examples when Qt is configured with -no-widgetsKent Hansen2012-06-071-0/+2
| | | | | Change-Id: I1ac74f9f1f28163260a9f54ecb65e1f7c1a9ea45 Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* remove personId detail from the contacts APIKranthi Kuntala2012-05-091-2/+0
| | | | | Change-Id: I33a564009982c797e5517186f633b24f1d5b374d Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* Fix email,phone,extdetail handling in qmlcontacts example.Cristiano di Flora2012-05-021-4/+4
| | | | | | | | Use enum values and not old unsupported string-based setter for field values in declarative details. Change-Id: If3f353710deb3fb481014cd4daab23df552544c8 Reviewed-by: Claudio Brunelli <claudio.brunelli@nokia.com>
* Remove several obsoleted APIs.Xizhi Zhu2012-04-161-1/+1
| | | | | | | | They have been marked as obsoleted, and replacements are available for quite a long time already. Change-Id: Ic0ee408e647aed5ade6ebeddc7b12607103d5927 Reviewed-by: Iiro Kause <iiro.kause@nokia.com>
* Several fixes.Xizhi Zhu2012-04-054-0/+4
| | | | | Change-Id: I999c579ec7d2fcb1977fda92d1999afa581cdcf3 Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
* Use enumeration for collection metadata keys.Xizhi Zhu2012-04-053-45/+9
| | | | | Change-Id: Iaabd624001e52e644bdaf9891d6c3f3667ab565c Reviewed-by: Päivi Rajala <paivi.rajala@nokia.com>
* Remove obsoleted references to customLabel.Cristiano di Flora2012-04-032-4/+4
| | | | | | | | Remove customLabel usage from examples/qmlcontacts Cleanup qdeclarativecontactdetail documentation. Change-Id: I528813c2a3aade378db1443e778b9e39f5058bc3 Reviewed-by: Kranthi Kuntala <kranthi.kumar-kuntala@nokia.com>
* Fix examples/qmlcontacts and bring it back to life.Cristiano di Flora2012-03-233-6/+70
| | | | | | | | | Adapts the example to new enum values for detail types. Adaptation to field values still missing. It also fixes a layout issue in the ToolBar. Change-Id: Icb87c8b9fe7874be1dc379f04ae0dcd78d4e579a Reviewed-by: Andy Cox <andrew.cox@nokia.com>
* Moved qmlorganizer to test/system folderacox2012-03-2246-4823/+0
| | | | | | | Change-Id: I52d680f1016b57e94dc34920fb359a5f9e328a15 Reviewed-by: pengwu <peng.1.wu@nokia.com> Reviewed-by: Pekka Kauppila <pekka.kauppila@nokia.com> Reviewed-by: Iiro Kause <iiro.kause@nokia.com>
* Remove the obsolete definition name for organizer details.Päivi Rajala2012-03-205-13/+13
| | | | | | | | They have been marked as obsolete for a while, so should be safe to remove now. Change-Id: I79ae9b0c3088477786e4b8fc34138b37d4df10f0 Reviewed-by: Päivi Rajala <paivi.rajala@nokia.com>
* Remove QContactThumbnail detail.Cristiano di Flora2012-03-151-28/+0
| | | | | | | | | | | | | | | This change removes the QContactThumbnail detail from contacts API. From now on, the handling of PHOTO property of a vcard in Versit will by default cover only the case of a URL value in the PHOTO field. Base64 encoded PHOTO properties are not added by default anymore to QContact objects. In case a specific platform requires storing Base64, this will have to be achieved by implementing platform-specific property handler plugins, e.g. taking care of storing the encoded thumbnails to the platform specific media storage location and converting the image to one or more formats that best fit the target platform. Change-Id: I46028b6229b04be0da853a5c02a600ae0d7b63ec Reviewed-by: Kranthi Kuntala <kranthi.kumar-kuntala@nokia.com>
* Organizer recurrence support, QML API and examplesPäivi Rajala2012-02-297-11/+53
| | | | | | | | | | | | | | Initial implementation of recurring item support. Previously QML API did not handle occurrences at all. This initial implementation should be optimized in the future. Added QML tests for generating occurrences and for handling occurrences in OrganizerModel. Updated QML examples to handle recurring events. Change-Id: Iabdee320c8b082ce923becb6b16ecca83f3c1662 Reviewed-by: Päivi Rajala <paivi.rajala@nokia.com>
* Remove obsolete contacts API example.Cristiano di Flora2012-02-2310-1173/+0
| | | | | Change-Id: I29b4e53c2762d35e69c7f7cfdf5536099bb71d85 Reviewed-by: Tommi Anttila <tommi.4.anttila@nokia.com>
* Fix the module names in the file headers.Xizhi Zhu2012-02-0624-24/+24
| | | | | | Change-Id: Ibe0e92da12770e8dedc503788edad1f0d129a5f1 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andy Cox <andrew.cox@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-3077-77/+77
| | | | | | | | | | | 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: I063dff80c66d3f4d1dfd07c27478b9d5b1bfe0d8 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* introduce QContactIdKranthi Kuntala2012-01-241-2/+2
| | | | | | | | | | | | | | | This change introduces a back-end agnostic QContactId abstraction based on the design pattern already adopted in Organizer API. Back-end specific IDs are hidden behind an opaque QContactId wrapper class. This implementation removes the QContactLocalId from the api Fixes to auto tests done by Pekka Kauppila<pekka.kauppila@nokia.com> Change-Id: Ib9f5433c662eeac476f73005500c1bdd5604b1fb Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com> Reviewed-by: Mikko Suonio <mikko.suonio@nokia.com>
* Remove QtContacts wince backend from source tree.Cristiano di Flora2012-01-201-5/+0
| | | | | | Change-Id: Ic223c722da964db0c996aaf85eda136e1e470c20 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Update obsolete contact address.Jason McDonald2012-01-2077-77/+77
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I981663bb2eec3d39a40bbec70bc064d0abec98ba Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Fix typo in DetailFilter in QmlOrganizerikause2012-01-171-1/+1
| | | | | | Change-Id: Ifa25882977eacb608154a8387a84ed40c74126e2 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
* white space removal for coding guideline fix.acox2012-01-171-1/+1
| | | | | | Change-Id: Iefe409d42c8e49592232c10ad283800efed3c096 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Päivi Rajala <paivi.rajala@nokia.com>
* Removed non existant saveItem methodacox2012-01-172-7/+2
| | | | | | | | | Design change to allow ICal files to be imported whatever backend used. Removed saveItem method in EventEditor which does not exist Change-Id: If95798adf18d54f22d7f243ffeb7d25763a7b663 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Päivi Rajala <paivi.rajala@nokia.com>
* Example application for QtContacts QML API.Gatis Paeglis2012-01-166-0/+716
| | | | | | | | | | | This Application is designed to introduce very basic usage of the API and get you stared with QtContacts library. It demonstrates how to interact with ContactModel in order to save, update and delete contact records. Change-Id: I0588e1591a39f328eecf36444f41b4492301abb6 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
* EditorEvent title editable area bordered same as rest of editables now.acox2012-01-161-4/+15
| | | | | | Change-Id: I77e534cd03f3e7d296a6b1fcaaa02977c3e0473f Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>