summaryrefslogtreecommitdiffstats
path: root/src/runtime/api/q3dselement.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Fix documentation issuesTopi Reinio2019-04-101-1/+1
| | | | | | | | | | | | | | | | | | This commit fixes multiple documentation warnings and problems: - Add missing documentation for Presentation. - Add missing 'QT += 3dstudioruntime2' class info by introducing a \module page. - Add missing import statements info for QML types by introducing a \qmlmodule page. - Make the documented QML import statements follow module versioning. - Add missing documentation dependencies. - Omit internal classes/orphaned doc comments from the build. - Fix minor language issues. Change-Id: I854fc0646bfed9282c9a4159890b5fa6f40d46d0 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Add support for element paths referencing objects in propertiesLaszlo Agocs2018-08-161-0/+10
| | | | | | | | | | | | | | | Users of the legacy API may very well do something like the following: Element { id: texture; elementPath: "Scene.Layer.Rectangle.Material.diffusemap" } texture.setAttribute("sourcepath", "some_image.png"); Note how the .diffusemap selects the Image object stored in the diffusemap property instead of a child object named diffusemap. Task-number: QT3DS-2089 Change-Id: I1b03516f67b390f8411e263774d64980b9f9e09b Reviewed-by: Christian Stromme <christian.stromme@qt.io>
* doc: Clean up the qml api docsLaszlo Agocs2018-05-231-23/+42
| | | | | | | | | Fix weird language, remove non-existent stuff, take the updated descriptions from the C++ APIs in a few cases, and add a few enhancements, in particular for DataInput and SubPresentationSettings. Change-Id: Icea43b5975bc05625c984f0cef8a2d1aa2f94ae6 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* more API docsLaszlo Agocs2018-05-141-7/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also pull in the property name table (the up-to-dateness of which is questionable). The version number in the generated docs should be 2.0, not the Qt version. Will need to figure out later how to maintain this. Not everything is documented yet. Less important functions will get covered later. Many bits here and there are revised compared to the 1.1 docs. There are however chunks that have been taken as-is. These need to be cleaned up later on. Most importantly, an initial Getting Started page has been added. This, like the mobile/embedded page needs to be extended signficiantly later on. A set of unused constructors (the ones taking no presentation) are removed from Q3DSElement/SceneElement/DataInput. This is because the QML API does not use them while it is impossible to utilize these in a meaningful way from C++ (where are require setting the presentation up-front with no setter afterwards). There were a few qdoc warnings from the internal implementations due to useless /*! or backslashes that confused qdoc. These are removed. Task-number: QT3DS-1606 Change-Id: I141bdc774e5be3e4fed5c1d729cac9b68a02be3b Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Add getAttribute to Q3DSElement for API symmetryLaszlo Agocs2018-04-271-0/+9
| | | | | | | | | | We added it everywhere elso too, even where it was missing in 1.x, so have it here too. And add something to the example. Change-Id: Ie82ee80807384f9cc1f00064af5e593f3f534ca6 Reviewed-by: Christian Stromme <christian.stromme@qt.io>
* Add Q3DSSceneElementLaszlo Agocs2018-04-271-0/+5
| | | | | | | | | | Exposed to QML as SceneElement. "Conveniently" duplicates more stuff from Q3DSPresentation. Go figure. Task-number: QT3DS-1014 Change-Id: Id3af13592cbddafd2081a0eae50fb2dd4c2f3229 Reviewed-by: Christian Stromme <christian.stromme@qt.io>
* Add Q3DSElementLaszlo Agocs2018-04-271-0/+93
Exposed to QML as Element. Beats me why this exists since the exact same functionality is available via the Presentation object. But whatever. Task-number: QT3DS-1014 Change-Id: I8697b611c064e3cd2bad5c5491f48a7b7232a4c4 Reviewed-by: Christian Stromme <christian.stromme@qt.io>