forked from qt-creator/qt-creator
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:
@@ -54,6 +54,7 @@ class ChangeSelectionCommand;
|
||||
class InputEventCommand;
|
||||
class View3DActionCommand;
|
||||
class ChangeLanguageCommand;
|
||||
class ChangePreviewImageSizeCommand;
|
||||
|
||||
class NodeInstanceServerInterface : public QObject
|
||||
{
|
||||
@@ -87,6 +88,7 @@ public:
|
||||
virtual void inputEvent(const InputEventCommand &command) = 0;
|
||||
virtual void view3DAction(const View3DActionCommand &command) = 0;
|
||||
virtual void changeLanguage(const ChangeLanguageCommand &command) = 0;
|
||||
virtual void changePreviewImageSize(const ChangePreviewImageSizeCommand &command) = 0;
|
||||
|
||||
virtual void benchmark(const QString &) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user