summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers to 2021Dominik Holland2021-06-0292-828/+736
| | | | | | | Also removed all the SPDX tags and -QTAS license extensions. Change-Id: I06802ea7b48ad749db3a696e9ec598b4aec6892c Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Port remaining examples to use QtQuick Controls 2Dominik Holland2021-06-025-31/+45
| | | | | Change-Id: Ia3e1930220dfb35da4b3d5b77a4d4a70d3cc80e3 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* ivigenerator: Remove the "Module" postfix in the autogenerated classesDominik Holland2021-05-2829-73/+73
| | | | | | | | | | | | | | | The module class which is autogenerated by the ivigenerator always got a postfix which was used to prevent compilation errors when module and interface had the same name. As we don't use any extra postfix for structs or interfaces either the "Module" postfix is now dropped as well and the module should rather be renamed already in the IDL file instead. Change-Id: I91bf95e824436e65e374aaf397ecd5c548444589 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Robert Griebl <robert.griebl@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* cmake: Fix building the climate_widget exampleDominik Holland2021-05-281-6/+2
| | | | | Change-Id: I3d8093a810ac00338c6db20883f6262461e3de82 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Make the ivicore examples to be fully functional againDominik Holland2021-05-2660-612/+130
| | | | | | | | | | | * Generation of QML Plugins fixed to work out of the box * Use correct folder structure for executables and plugins * Add optional DBus dependency for qface-tutorial * Remove the shader-effect from the qface-tutorial Change-Id: I212eade621ac9d741e1f0fe75ceef2c59c312865 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Temporarily disable building ivigenerator examplesDominik Holland2021-05-202-4/+4
| | | | | Change-Id: If41d10cda231913376388ba9c3901e3521baa8f1 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Enable the QtRemoteObjects supportDominik Holland2021-05-2023-95/+94
| | | | | | | | Similar to the previous commits, the examples and tests build ok, but are not yet ready to be used and still need to be refactored. Change-Id: Icb4482696e81a5a17b89622182053c5cfcb5fc7b Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Remove 'virtual' keyword when overriding methodsDominik Holland2021-05-202-2/+2
| | | | | Change-Id: I7d124886c71093d2fc8405a7ec4157464e3c3333 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* cmake integration of the ivigeneratorDominik Holland2021-05-1027-26/+375
| | | | | | | | | | | Rerun pro2cmake.py for all examples and tests. Ivigenerator based tests and examples are compiling fine, but the cmake files need to be reworked to be also able to run them. Task-number: AUTOSUITE-1633 Change-Id: Icb95ecfa62ecb319d042dc30ea9f643b69a4aacf Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix some pro and qrc files to get rid of cmake conversion warningsDominik Holland2021-05-107-11/+0
| | | | | | | Also delete orphan pro file in one of the ivigenerator templates Change-Id: I115ebe504344269c1554b6396df545467f5b0a59 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* cmake: Add configure test for DLT and fix building GeniviExtrasDominik Holland2021-03-262-2/+3
| | | | | | Task-number: AUTOSUITE-1633 Change-Id: Icf2117f9772dccff871c7fa9307479c2488f3965 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* cmake: Start of cmake port using run_pro2cmake.py and friendsDominik Holland2021-03-2656-0/+2528
| | | | | | | | Some special cases are already addressed. Task-number: AUTOSUITE-1633 Change-Id: I5409522c1c5eb76b8aac3e7e332d1e1cc27e594f Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Use the DiscoveryMode enum correctly in all our QML filesDominik Holland2020-12-023-3/+3
| | | | | | | | Similar to C++ we need to use the Type where the enum is defined in for assignments. Change-Id: Id491d591d97915452ebcff8a7f47360be4e2340a Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix invalid simulationData in the qface-ivi-climate exampleDominik Holland2020-03-231-1/+1
| | | | | Change-Id: I259eb331e0abdb80cc25a2f25c2130596393d37d Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix building without widgetsDominik Holland2020-01-299-13/+14
| | | | | Change-Id: I6442a6c1db7724febac1afffd52221d96adb8309 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Merge remote-tracking branch 'origin/5.13' into 5.14Dominik Holland2020-01-171-2/+2
|\ | | | | | | Change-Id: I0a79176763ca001072d41f377869854e1982e4e7
| * doc: Various doc fixesDominik Holland2020-01-091-2/+2
| | | | | | | | | | | | | | | | | | * Added a link to the Generator Tutorial to the front page * Added a short paragraph about RPATH linking to the tutorial * Fixed linking warnings Change-Id: I085ddbe5c0e9939e2e22ae7188c307fae52f77b2 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* | Fix all plugin class names to be unique within the moduleDominik Holland2019-10-303-3/+3
|/ | | | | | | | | | | | The plugin class name is used to instantiate the plugin when used as static plugin and also defines the name for the cmake files to include those plugins. Using the same name sometimes caused build errors when generating the same cmake file. Change-Id: I28e6b83148d14265fb74690d2b912628446301eb Fixes: AUTOSUITE-1322 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* qface-tutorial: Add rpath to the pluginsv5.13.1_QtASDominik Holland2019-10-0710-0/+10
| | | | | | | | This is needed for the plugins to find the frontend lib on the target Change-Id: I6b83b5ac96b450f7a35b241b2f64275d2ff5dbc5 Fixes: AUTOSUITE-1250 Reviewed-by: Stanislav Maksimov <smaksimov@luxoft.com>
* Fix install/deploy pathsStanislav Maksimov2019-09-256-6/+12
| | | | | | Task-number: AUTOSUITE-1250 Change-Id: I6cbdc49fce071d4b5e5e415d313d3622362e47c8 Reviewed-by: Bernd Weimer <bernd.weimer@pelagicore.com>
* doc: Improve the IVI Generator TutorialDominik Holland2019-08-283-1/+4
| | | | | | | | | | * Add the missing gifs * Don't create bundles on mac * Signature fix for the dbus chapter * Link to this tutorial instead of the Climate Example in some places Change-Id: I1c1afd3c61a04f3eb040440816afc8c2abedc978 Reviewed-by: Kavindra Palaraja <kpalaraja@luxoft.com>
* Merge remote-tracking branch 'origin/5.12' into 5.13Dominik Holland2019-08-271-3/+5
|\ | | | | | | Change-Id: I091bb051fb74b4615daeb234dc8982449ab6cd6c
| * Fix build to work without the QtGui moduleDominik Holland2019-07-081-3/+5
| | | | | | | | | | | | | | | | Tests are skipped in this configuration because a lot of tests rely on QtQuick being available. Change-Id: I1a1661474f9279f2a8f7c3de24786629e73f75a4 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Add a IVI Generator TutorialDominik Holland2019-08-01136-0/+8799
| | | | | | | | | | | | | | | | | | | | The tutorial has multiple chapters and shows how to extend a UI step-by-step with a Middleware API using the IVI Generator. Fixes: AUTOSUITE-1155 Fixes: AUTOSUITE-600 Change-Id: Ib18de9e3d53d7163f880a2258173e0b6119ef3af Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Use simulation backends for our QtIvi examplesDominik Holland2019-06-254-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because we introduced a production backend based on QtRO, this backend is used by default, but as no server is running it can't connect it and shows some errors. To not over complicate things we now use the simulation backend for those examples and add a small note to the example documentation Change-Id: I706d449e7e84f70a560aaa4f95baa86bb2682448 Fixes: AUTOSUITE-1057 Reviewed-by: Vladimir Minenko <vladimir.minenko@pelagicore.com> Reviewed-by: Kavindra Palaraja <kpalaraja@luxoft.com> Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Update the mediaplayer exampleDominik Holland2019-05-081-0/+6
| | | | | | | | | | | | | | | | | | | | | | Added a 'Refresh' button to reload the content of the library. This is useful when a new USB devices is atttached. Also better handle the removal of a USB device and reset the File browser view. Change-Id: Iab16e213f9022f63ebdfacd087a8eb92a2080b9b Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Remove the compile time dependency to QtQuickControls2Dominik Holland2019-04-232-4/+1
| | | | | | | | | | | | | | | | | | Only the qface-ivi-addressbook example needed it for setting a specific style. The default QQC2 platform style should be good enough for our examples. Change-Id: Ibec54f4f34ad5fb616589ade26e621d7dad38d8e Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | ivigenerator: Add support for pending server repliesDominik Holland2019-04-012-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default QtRemoteObjects always wants to return a result for a function call right away. For function calls which take longer this doesn't work very well as the Qt main event loop is blocked until the result is ready and in the meantime no other communication can take place. This commit introduces a workaround for this limitation by generating a interface specific PendingResult object which can be returned as a placeholder to inform the client that the result is not yet ready. The actual result is emitted by the server using the pendingResultAvailable signal with the call-id and the result. To also support returning the result right away the return value always needs to be of type QVariant. This also has the good side effect that the client side always gets informed of whether a call has been finished or not as QtRemoteObjects doesn't provide QRemoteObjectPendingReply<void> for this. Change-Id: I68bf29b84b95042b69b5e1a18096f48ee9da7c7c Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | ivigenerator: Add the generation of a qmltypes for the simulation APIDominik Holland2019-02-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to the frontend QML API, this adds the generation of a qmltypes file for the simulation API, which can be used in the simulation engine. Because QtCreator cannot handle the same import uris in different folder we always need to generate the frontend qmltypes together with the simulation qmltypes in one combined folder structure. For now the qmltypes are moved into the common folder and generated in the frontend and the backend_simulator template to make it easier to include them. Later the same files can be used for the qml_plugin generator. Task-number: AUTOSUITE-743 Change-Id: I49aecf4d158fc46dbc1eac80c707194440c5763f Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | ivigenerator: Also use the qml_types filter for the uri of the simluation engineDominik Holland2019-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | By also using the qml_types filter here, we make sure that the uri for the simulation is similar to the frontend API. (It just adds a extra .simulation at the end). Also juse the qface module version in the autogenerated QML API Change-Id: I4804302a18f7af93345a905c79dd86b00c77702b Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Use the new autogenerated qmltypes in our examplesDominik Holland2019-02-159-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of registering the QML types with a custom uri, we now just use the default argument of the type registration and by that make sure that the types are registered with the same uri which was used in the qface file and the same which is used by the autogenerated qml types. Adding the QML_IMPORT_PATH to our autogenerated qmltypes makes sure QtCreator knows the type and can provide a code-completion Change-Id: Ifd4ce8ec32da240ccf0070b737fd02c17f8fe2dc Fixes: AUTOSUITE-743 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | ivigenerator: Don't use the javadoc syntax in our qface filesDominik Holland2019-02-111-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | In theory the documentation inside the qface files could be transformed using the javadoc syntax and the parse_doc filter function, but so far we only supported the brief tag and already used qdoc commands in the function directly. As the tag functionality of parse_doc is nothing we can really use, better use qdoc commands in the qface documentation right away. Change-Id: I9b23fe84acc6cd942e6fa7ec5933911b84ce22ec Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | ivigenerator: Make use of the qml_type filter also for modulesDominik Holland2019-02-111-1/+1
|/ | | | | | | | | | | | | | | | The qml_type tries to read both annotations now, qml_name and qml_type For modules the filter returns the module_name or the new name from the annotation. As before this can be used to register all types under a specific QML uri. The last section of the uri is now also used as the QML name for the module singleton holding all enums and factory functions. E.g. a module named "com.example.climate" will now make all its enums available from the "Climate" object (Climate.AutoRecirculation) Change-Id: I6481a34876d6c47bd8f34c946c7638e34cc857f1 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Change the qface examples to only build the configuration which is neededDominik Holland2019-01-106-6/+3
| | | | | | | | | | | | As long as the examples are not using frameworks on osx, it is better to only build the configuration which is needed, instead of building debug_and_release for the plugin and the libs. Not using frameworks could lead to loading a wrong plugin version when the application is build in debug mode, but the frameworks used are in release mode (or vice versa). Change-Id: Id5da6adafe5091edc489c22f36bc059542db2098 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* ivigenerator: Fix the backend_qtro template to generate a correct plugin.jsonDominik Holland2019-01-101-1/+1
| | | | | | | | | | The other templates have been fixed already before. Also make sure the example doesn't specify a custom id to make sure we test this path by default. Change-Id: Icf4eb17c057ea8cba7673b9884c5123c4e749ffd Fixes: AUTOSUITE-735 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Update copyright statementsRobert Griebl2018-12-1723-0/+23
| | | | | | | | - added 2019 - everything is (c) Luxoft instead of Pelagicore from now on Change-Id: I4a6dbd46aaffbb90cea57626bd75e3972cea2cfc Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Update the addressbook exampleDominik Holland2018-12-051-0/+8
| | | | | Change-Id: I820277271cb968958649fe4144a886133d74fd5c Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Clang-tidy and Clazy fixesDominik Holland2018-12-052-2/+2
| | | | | Change-Id: Id88db48e0e18761a9bc1b1014628bf0099c4e5cf Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Fix QIviSimulationEngine loadSimulation to use QUrl instead of QStringDominik Holland2018-10-251-1/+1
| | | | | Change-Id: I8f9caa83814519934fd244ae75817ae940e059a7 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Extend the addressbook example to use the new QIviSimulationEngineDominik Holland2018-10-155-1/+86
| | | | | | Task-number: AUTOSUITE-628 Change-Id: Ia90e42d801c68d91dd71b309ea4c518f349f13f9 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Merge remote-tracking branch 'origin/5.11' into devDominik Holland2018-09-273-3/+3
|\ | | | | | | Change-Id: If48055bb577b4b59a836b2c4a00d940401b97c6a
| * Use the full module uri for the class export macroDominik Holland2018-06-082-2/+2
| | | | | | | | | | | | | | | | | | Using the full uri makes it more unlikely that the export macro names clash with the export macro of an library with the same name. Task-number: AUTOSUITE-509 Change-Id: If5d66f7dc4d7e3e8edc4cbede1d2dfcbaad3b1d7 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Build-system cleanupDominik Holland2018-09-143-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix PLUGIN_CLASS_NAME in all places and remove PLUGIN_EXTENDS where it is not needed. For all plugins which are provided with the modules, fix the PLUGIN_EXTENDS to match the module name to also deliver the cmake file for these plugins. Renamed the MprisPlugin class name to not clash with the normal plugin name, as this is also used for the cmake filename. This should also fix build errors when trying to create the cmake files in non-existent folders. Change-Id: I102019fab327273903c8c378595c06a25964cfe8 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Add a addressbook example for models and custom simulationDominik Holland2018-07-2710-1/+284
| | | | | | | | | | | | | | | | | | Adds the addressbook example which is used to explain how the autogeneration of models works. Task-number: AUTOSUITE-422 Change-Id: I2a0c6cba81dfdcf072da9584b731f170cc927711 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Add better qt-creator target names for examplesDominik Holland2018-07-132-0/+2
|/ | | | | | | | As all qface examples have the same structure we end up with multiple "demo" targets in QtCreator otherwise. Change-Id: Ie12ca791a09f5fb2175dab1399cc4cbab56d98bc Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Change the example walkthroughs to include code from filesAntti Hölttä2018-05-0311-35/+53
| | | | | | | | Use qdoc \snippet instead of hard coded snippets in the QtIvi core example walkthroughs Task-number: AUTOSUITE-278 Change-Id: Icd966aeb53805d7b0009db490d5c462c22d75bf8 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Add documentation and an example for QtRemoteObjects templatesAntti Hölttä2018-04-2513-1/+524
| | | | | | | | | | | Add documentation for remote object templates: update list of template files and add a general description of the remote objects features. Add an example project and a walkthrough to demonstrate the remote objects generation features. Task-number: QTAUTO-919 Change-Id: I3d25d29fd9b9ca2a72bbc6662f05b968d9aa5413 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Update the QIviSearchAndBrowseModel to use the new QIviPendingReplyDominik Holland2018-03-281-2/+2
| | | | | | | | | Because of this, the indexOf function is now easier to implement and works from QML and C++. Task-number: QTAUTO-838 Change-Id: I094511abf8f55fd9728aa94e552dcc79f9bf0b58 Reviewed-by: Antti Hölttä <ahoelttae@luxoft.com>
* Use the new QIviPendingReply class in the autogenerator templatesDominik Holland2018-03-231-2/+2
| | | | | | | | | | | | | Every method inside a qface file will now return a QIviPendingReply. This also changes the signature of the QIviVehicleFunctions module and its backend implementations. Also updated the window_qml example to make use of the new returned QIviPendingReplies from the open() and close() calls. Task-number: QTAUTO-837 Change-Id: Icf8a31fcd94630254f71b0c4fb2e1ef4296591af Reviewed-by: Antti Hölttä <ahoelttae@luxoft.com>
* Fix deployment of the qface-ivi-climate exampleDominik Holland2018-02-093-3/+8
| | | | | | Task-number: AUTOSUITE-190 Change-Id: I18a9f4d00951d3b0284846d7ef2808f59a512ff8 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>