QmlDesigner: Preview size is now changeable

You can now change the preview size with
rootModelNode.setAuxiliaryData("previewSize@Internal", size);
If size is null it will use the bounding box size.

Change-Id: Icbe747ccc5a2e26e79783825d2ed94ecc640012b
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Marco Bubke
2020-05-07 14:13:21 +02:00
parent 2e409f792c
commit 0e7a1e6650
14 changed files with 169 additions and 39 deletions
@@ -1397,8 +1397,7 @@ void NodeInstanceServer::view3DAction(const View3DActionCommand &command)
Q_UNUSED(command)
}
void NodeInstanceServer::changeLanguage(const ChangeLanguageCommand &command) {}
}
void NodeInstanceServer::changeLanguage(const ChangeLanguageCommand &) {}
void NodeInstanceServer::changePreviewImageSize(const ChangePreviewImageSizeCommand &command) {}
} // namespace QmlDesigner