aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add stream serialization functions for generated structs and enums5.10Antti Hölttä2017-11-026-11/+99
| | | | | | | | | Add stream operators and equality-operators for the struct template. Change existing enum stream operators to check values outside of the enums range. These are needed for serializing of types eg. when using generated types over QTRO. Change-Id: I169b3d598b65eaae2de8562507a66ee996b81081 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix notifications on property changesMike Krus2017-11-021-2/+2
| | | | | | | | Change signals are now emitted when values are committed to the backend Task-number: QTAUTO-548 Change-Id: If5880e1924b56e22b97017724bcc6cb0c9261844 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* ivigenerator: Fix the deploy-virtualenv.sh to create usable virtualenvsDominik Holland2017-10-272-4/+21
| | | | | | | | | | | | | On some systems libpython needs to be copied into the virtualenv to make the python executable work. As we can't change the rpath easily we need to use LD_LIBRARY_PATH in the qmake integration to make the system find the correct lib. The script now also copies the needed libcrypto.so and libssl.so from the system to the virtualenv as they are needed by the hashlib module Change-Id: Ib7911f6d69c743892397581f91991ef415321aa3 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Build fix for msvc compilers 2012 and 2013Dominik Holland2017-10-241-1/+1
| | | | | Change-Id: I9ba1d4a56fa73730f753ed7db5709fdb8e8f7cfe Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Add documentation about the different configuration options of qtiviDominik Holland2017-10-182-0/+115
| | | | | Change-Id: I4e25a9ea2ca83871329f02e3832139279020cdb7 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Minor doc fixesDominik Holland2017-10-186-14/+17
| | | | | Change-Id: I15ab1a6e6c10275f523d9b28ec3a5668f0e10901 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* ivigenerator: Improve the deploy-virtualenv.sh scriptDominik Holland2017-10-181-11/+20
| | | | | | | | | | | | | | On some linux systems the python executable is linked to a libpython.so file, which is not put into the virtualenv. This file needs to be copied as well and made sure that it is found when the binary is executed. Also the system module directory is not always located in <prefix>/lib. To find the correct locations we use the python sys module to print out all paths and search for the files in all starting with <prefix> Task-number: QTAUTO-289 Change-Id: I9b1077c89501803fa83dab02e8238fa48a005298 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Enable building on Windows for MSVC, MingW and AndroidRobert Griebl2017-10-162-7/+7
| | | | | Change-Id: I9563fea0619b540f8e4dd929bf72a3c4178066bb Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix MSVC warningsRobert Griebl2017-10-161-2/+2
| | | | | Change-Id: I4aa199709597d93d7b38287224797f4420b37dbd Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Make the vehiclefunctions-controller a qt_toolDominik Holland2017-10-111-0/+2
| | | | | | | | This makes sure the binary will be placed into the bin folder and also has the correct install target Change-Id: I11eec0332efc28af3dc2189592092fd070e5a0f5 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Fix crash in the indexer caused by QtMultimedia not being thread-safeDominik Holland2017-10-112-0/+3
| | | | | | | Also register the IndexerStatus enum to make it work over thread boundaries. Change-Id: I80a955c488a41599dc87ca167e6465269600db67 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Fix build for cross-compiling to android from windowsDominik Holland2017-10-091-5/+5
| | | | | | | | The ivigenerator qmake feature needs to check the host architecture instead of the target architecture. Change-Id: I8f2357c84dadf237408a8c472f4604a04c265eea Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Temporarily disable building on integrity completely to pass the Qt CIRobert Griebl2017-10-041-0/+2
| | | | | Change-Id: Ic4242f7c7cfd8fa6baf905194b0fa9c749fed410 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Restore macOS supportMike Krus2017-10-032-3/+2
| | | | | | | | | Adding a delay before generating the code appears to introduce enough difference to avoid race conditions between makefile and generate code timestamps Change-Id: I7ba3361492053b65ddd89b41ee46c32cec96f8ab Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Enable building on android againDominik Holland2017-09-221-1/+1
| | | | | Change-Id: Ia7491b4d234186b477983ea26d14492cf7ce33f8 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Create the ivigenerator during the prepare_docs phaseDominik Holland2017-09-221-0/+7
| | | | | | | This is needed to autogenerate the API, which is later parsed by qdoc Change-Id: Ic61c7010f78b376832a23b07f9a92476f660738d Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Make sure QIviServiceObject returns a unique idDominik Holland2017-09-223-4/+4
| | | | | | Task-number: AUTOSUITE-54 Change-Id: I78d272b6fbeac91d16e34a1253dd53d2550d6a6c Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Improve Qt AS module and tool descriptions on Overview pageTarja Sundqvist2017-09-213-27/+59
| | | | | | | | | | | | Clarified the description of some Qt Automotive Suite tools and and related modules. Added also a high-level picture of Qt AS structure. The picture is based on the blog post written by Alistair Adams in June 8th, 2016. The picture is updated according to Qt brand guidelines (font, colors). Task-number: QTAUTO-558 Change-Id: If5828fe307a1f99cb8c29d36a6e18805015fbe42 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Merge remote-tracking branch 'origin/5.9' into 5.10Dominik Holland2017-09-192-2/+2
|\ | | | | | | Change-Id: I61180ae3eb1e00490089ef6fb4deb29918766d87
| * Build fix for DLT < 2.12Dominik Holland2017-09-192-2/+2
| | | | | | | | | | | | | | Also made the configure output more clear Change-Id: Ic44b8ee26ec552415b8afef3b63389e90e21dfa4 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
| * Fix build errors for qivipropertyfactory.h with Qt 5.9Dominik Holland2017-09-041-1/+1
| | | | | | | | | | | | | | | | | | | | Previously we registered QFlags::operator int() as converter function for QMetaType. This stopped working in Qt 5.9. Instead we now register a lamda which is using an implicity cast. Change-Id: Ib8cb34a122fb58fbfdec9da2eb8366332c7e9241 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com> (cherry picked from commit 4c81a8c761b50e098825719adeb2a1f52aa6d079)
* | Update qface to the latest versionDominik Holland2017-09-191-0/+0
| | | | | | | | | | | | | | | | With this version, undefined variables inside template files are reported as errors in the strict mode and are displayed properly inside QtCreator Change-Id: I30e5bda9a0b53b0e6b61925e82e845812ac7e306 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | ivigenerator: Also use the default_values annotation in the control_panelDominik Holland2017-09-191-1/+6
| | | | | | | | | | | | | | | | The generated control_panel now uses the same default values as the simulation backend Change-Id: I07e97284134f998e815fdd09e5bd979753c06fc8 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | ivigenerator: Add support for signals and operations to the control_panelDominik Holland2017-09-195-15/+64
| | | | | | | | | | | | | | | | | | The control_panel now ofers a control to send signals. All calls of a operation (e.g. open in the QIviWindowControl) are now forwarded to the control_panel and logged inside a TextArea. Change-Id: I893210a723cd1a1792c626711da0d436c00680de Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | ivigenerator: Also connect signals from backend to frontendDominik Holland2017-09-192-0/+35
| | | | | | | | | | Change-Id: If367eca672f311b73ac4494a9ad9405fcb10f6f1 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Integrate qtsimulator support for the control_panelDominik Holland2017-09-1918-54/+321
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The control_panel acts as a server and the backend connects to it. Once a connection is established the control_panel will push it's initial values to the backend and from there all properties and signals are synchronized. Currently only one connection is supported. The qtsimulator support is detected during configure time and based on that the new "simulator" feature is enabled. The ivigenerator now has a configuration file, which is used to define which features it supports. This is used to be able to generate qtsimulator support into the simulation backends only if the qtsimulator is available and the feature is enabled. Task-number: QTAUTO-441 Task-number: QTAUTO-442 Change-Id: I5045d21f92176fed7d9025850b70f4759c9232c2 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | ivigenerator: Also test the control_panel generation of signalsDominik Holland2017-09-192-1/+5
| | | | | | | | | | Change-Id: Ie4ed4661b178b7c84cbd1ec01e0f11f021d38928 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Add the control_panel to the autogenerator testsDominik Holland2017-09-159-30/+48
| | | | | | | | | | | | | | | | | | Fixed it to make it work also for unzoned interfaces and fixed a issue when no qml_name is set for the interface, which caused the QML and the C++ backend to have the same name and cause weird issues. Change-Id: I0d90fb56b60ff17eb37b41412c1d33a8e628df43 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Refactor the control_panel interface classDominik Holland2017-09-1511-105/+143
| | | | | | | | | | | | | | | | | | | | | | | | The class now works more like the QtIvi public API and uses one object per zone accessible using the zoneAt property. This also intruces two new special controls for Enums and Flags, which makes the generate.py part a little bit easier and make the controls work in both directions (backend values and update of user values). Change-Id: Ib012265ef405d4a4e20ed43d611caa0163a40446 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Add a tool for controlling the vehiclefunctionsDominik Holland2017-09-1512-75/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the previously introduced 'control_panel' template and adds it into the build-system. Fixes the template to produce compilable code and changes the UI layout a bit. Every interface is now put into it's own tab and the content is now flickable to make it more convenient to be used. Change-Id: Iccbe82ab3e5dc988533c3d4ce75980bd719e5417 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Export inner classMike Krus2017-09-151-1/+1
| | | | | | | | | | | | | | Apparently this may be needed on windows Change-Id: Ie73ac63104e6d17420abdefe4d5ff9532a46bfe1 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* | Add missing filesMike Krus2017-09-153-2/+9
| | | | | | | | | | | | | | Not sure how that happened, but breaks Gammaray as it fails to link Change-Id: If86158085b11d1988ba16580e844b4fc26833665 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* | Add BYOS instruction for NVIDIA DRIVE CXTarja Sundqvist2017-09-136-5/+238
| | | | | | | | | | | | | | | | | | An instruction for building an image and a toolchain for NVIDIA DRIVE CX added to Qt Automotive Suite documentation. Task-number: QTAUTO-392 Change-Id: I76bcfebb2c932a451986659f5c3e0c5412cb9b0f Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* | Add default overrider classMike Krus2017-09-126-0/+736
| | | | | | | | | | | | | | | | | | | | Default implementation of a property overrider that can be assigned to an abstract feature via the private instance. Proper overriding relies on code generate from qface idl or on matching implementation in user provided classes. Change-Id: I18b1640b0acdbc3ef5242bf81961c3286b36ff7f Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* | Improve property overridesMike Krus2017-09-122-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | Fixes a number of issues when properties are overridden: - frontend values still being modifiable - prevents backend changes reaching the frontend - restores backend value when overriding is disabled - handle overriding readonly property, this requires adding capability for emitting change signals since no setters exist Change-Id: I55e9d12417e4d39a73b02e7aa884d670ebc7f551 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* | Fix for overriding zoned featuresMike Krus2017-09-122-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Initialize the pointer to the service object for zoned child features (doesn’t do the full registration as it doesn’t need to connect to change requests). This is needed to be able to identify all instances of front end classes which are talking to the same backend. Also always update the client side value even if overriding is on. Change-Id: I2d756106c14536936451f61a502a13a1bb28e8dd Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* | Update module version to 2.0.0 for the 5.10 branchDominik Holland2017-09-121-1/+1
| | | | | | | | | | Change-Id: I6833305ed73ff3e01e571e9666945a40cf8ec0f7 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | ivigenerator: Enable the strict modeDominik Holland2017-09-122-1/+5
| | | | | | | | | | | | | | Which causes the generator to stop on the first error Change-Id: Idb8cea0165367508c3f1f3ab8cf0fa66942cf984 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Add nicer default values for targetTemperatureJan Arne Petersen2017-09-121-1/+1
| | | | | | | | | | | | | | | | Use the zoned default values to specify default targetTemperatures from neptune-ui. Change-Id: I28039a914e8747fd70226846939f05e381716b8e Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* | Add default value for outsideTemperatureJan Arne Petersen2017-09-121-0/+4
| | | | | | | | | | | | | | Use the default value for outsideTemperature from neptune-ui. Change-Id: Ic2a7f099c4b08ff49be44c80f9f8f4324aa80017 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Add support for zoned default valuesJan Arne Petersen2017-09-123-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | Zoned default values are defined by a map from zone_name to default value. The default key is as defined by YAML '='. Example: config_simulator: default: { left: 21.0, right: 22.5, =: 0.0 } Change-Id: Ia0f1be270399aec4e90e816f0b063b6b4fc6d7e2 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* | ivigenerator: respect -system-ivigeneratorSamuli Piippo2017-09-121-2/+3
| | | | | | | | | | | | | | | | Don't use the internal ivigenerator when -system-ivigenerator option is enabled, as is done in yocto builds. Change-Id: Ic22c2bba0214041618ef4c157056a3638235ec97 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Disable the build on macosDominik Holland2017-09-121-1/+1
| | | | | | | | | | Change-Id: Ic7e36d5284979cc30cc65da269d92f275917c69a Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Fix for disabling generator completelyMike Krus2017-09-125-15/+22
| | | | | | | | | | | | | | Cannot build ivivehiclefunctions at all or have tests for ivigenerator Change-Id: I24291bfa4fa1074106ab0c9e29ba1301cd93e74c Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* | Only recreate the virtualenv if really neededDominik Holland2017-08-212-16/+28
| | | | | | | | | | | | | | | | The Makefile targets now map to really available files which are updated during that specific build step. Change-Id: I63a7a1f4cc59ada7b4d7d7aef378477c3f4b08ef Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Fix overriding propertiesMike Krus2017-08-212-3/+5
| | | | | | | | | | | | | | | | | | When setting overridden values, there was no way to know if the values needed to be pushed to the backend. Setter now returns true if the values are overridden. Change-Id: I53444099520f75cb48f334591104aca9eb18d41e Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* | Add ability to specify template folderMike Krus2017-08-212-18/+19
| | | | | | | | | | | | | | | | | | This removes the ability to provide multiple format but it was useless anyhow (as everything ended up in the same folder) Task-number: QTAUTO-470 Change-Id: Ic47e5b3e6b07bbdcf650c57287e112cd2c6f890b Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* | Use a better detection for the special qtci environmentDominik Holland2017-08-183-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Coin is doing a two stage build, which leads to problems for the virtualenv generation. Before we used the installed version when available, but this is problematic in the developer workflow when an existing qtivi installation already exists, as the installed (old) version is used instead of the new one. The QTEST_ENVIRONMENT environment variable is now used to detect whether we are in the special CI environment. Change-Id: I9d3d5d7f84c9f5e059897865c8cf7b30f8d84fda Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | change the targetTemperature from int -> realLukáš Tinkl2017-08-173-5/+5
| | | | | | | | | | | | | | | | | | rationale: neptune-ui always allowed for fractional temperatures but due to a bug this has never really worked properly Change-Id: If2833463644cfb4cee97f74c5e7ae308c943b92d Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com> Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* | fix the zone documentation snippetLukáš Tinkl2017-08-171-3/+3
| | | | | | | | | | | | Change-Id: I14d3196f9dbf14826fee4a09006ef5c675aa1a38 Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com> Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>