QmlDesigner: Initialize 3D edit view tool state at initial show

Whenever the tool state of 3D edit view changes, creator is notified
to store the state. The stored state is then restored to 3D edit view
when it is restarted. The state persists only for the lifetime of the
creator.

Change-Id: I888b3ba82693a17a2f163924fbae1cfa27593890
Fixes: QDS-1351
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Miikka Heikkinen
2020-01-16 17:42:04 +02:00
parent 57c41edf54
commit ef95674378
13 changed files with 199 additions and 28 deletions

View File

@@ -216,6 +216,9 @@ void NodeInstanceServerInterface::registerCommands()
qRegisterMetaType<QPair<int, int>>("QPairIntInt");
qRegisterMetaTypeStreamOperators<QPair<int, int>>("QPairIntInt");
qRegisterMetaType<QPair<QString, QVariant>>("QPairStringVariant");
qRegisterMetaTypeStreamOperators<QPair<QString, QVariant>>("QPairStringVariant");
}
}