diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-03-19 15:54:05 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-03-20 15:30:59 +0000 |
commit | 3a81d7b62225f558ff48e3302d91725e00f2c3f9 (patch) | |
tree | 0626e49ce42d24bb2f8f85f5687bd5dd283fdee2 /tests | |
parent | 302ae0ccd719713a872a292ba20f5f1f15cdc263 (diff) |
Q3DSPresentation public API: fireEvent and a few enablers
Some of the to-be-added APIs involve the silly element path concept which
we cannot avoid now. So move the lookup function to Q3DSEngine and add the
opposite that constructs a Scene.Layer.BlahBlah type of path from an object.
The duplication of overrides for Q3DSPresentationController functions is
now avoided by implemented some of the handleXxxxx functions in the base
class (the ones that just forward to Q3DSEngine).
Change-Id: I67cca6c0f56e545c1ba4dbf040dff26273bf823f
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scenes/behaviors/actionevent.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/scenes/behaviors/actionevent.qml b/tests/scenes/behaviors/actionevent.qml index 2f24496..6a49f69 100644 --- a/tests/scenes/behaviors/actionevent.qml +++ b/tests/scenes/behaviors/actionevent.qml @@ -74,6 +74,11 @@ Behavior { // ### too bad this crashes //setAttribute("SlideText", "textstring", "slide entered"); }); + + // For the simpleqml example + registerForEvent("Scene.Layer.Camera", "customCameraEvent", function () { + setAttribute("SphereMaterial", "diffuse", "1 1 0"); + }); } function doIt() { |