Debugger: Move PerspectiveState registration

... to DebuggerPlugin ctor. This fixes a "Variant::load: unknown users
type with name Utils::PerspectiveState" message when the TextEditor
plugin restore the FontSettings.

Change-Id: I8e1ebe562233ff6e9b7bdbfa85680e5acf6c4715
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2020-02-11 12:55:31 +01:00
parent 713cdb86a0
commit c570d6469d
2 changed files with 3 additions and 3 deletions

View File

@@ -270,9 +270,6 @@ DebuggerMainWindowPrivate::~DebuggerMainWindowPrivate()
DebuggerMainWindow::DebuggerMainWindow()
: d(new DebuggerMainWindowPrivate(this))
{
qRegisterMetaType<PerspectiveState>("PerspectiveState");
qRegisterMetaTypeStreamOperators<PerspectiveState>("PerspectiveState");
setDockNestingEnabled(true);
setDockActionsVisible(false);
setDocumentMode(true);

View File

@@ -2159,6 +2159,9 @@ DebuggerPlugin::DebuggerPlugin()
{
setObjectName("DebuggerPlugin");
m_instance = this;
qRegisterMetaType<PerspectiveState>("Utils::PerspectiveState");
qRegisterMetaTypeStreamOperators<PerspectiveState>("Utils::PerspectiveState");
}
DebuggerPlugin::~DebuggerPlugin()