forked from qt-creator/qt-creator
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:
@@ -270,9 +270,6 @@ DebuggerMainWindowPrivate::~DebuggerMainWindowPrivate()
|
|||||||
DebuggerMainWindow::DebuggerMainWindow()
|
DebuggerMainWindow::DebuggerMainWindow()
|
||||||
: d(new DebuggerMainWindowPrivate(this))
|
: d(new DebuggerMainWindowPrivate(this))
|
||||||
{
|
{
|
||||||
qRegisterMetaType<PerspectiveState>("PerspectiveState");
|
|
||||||
qRegisterMetaTypeStreamOperators<PerspectiveState>("PerspectiveState");
|
|
||||||
|
|
||||||
setDockNestingEnabled(true);
|
setDockNestingEnabled(true);
|
||||||
setDockActionsVisible(false);
|
setDockActionsVisible(false);
|
||||||
setDocumentMode(true);
|
setDocumentMode(true);
|
||||||
|
@@ -2159,6 +2159,9 @@ DebuggerPlugin::DebuggerPlugin()
|
|||||||
{
|
{
|
||||||
setObjectName("DebuggerPlugin");
|
setObjectName("DebuggerPlugin");
|
||||||
m_instance = this;
|
m_instance = this;
|
||||||
|
|
||||||
|
qRegisterMetaType<PerspectiveState>("Utils::PerspectiveState");
|
||||||
|
qRegisterMetaTypeStreamOperators<PerspectiveState>("Utils::PerspectiveState");
|
||||||
}
|
}
|
||||||
|
|
||||||
DebuggerPlugin::~DebuggerPlugin()
|
DebuggerPlugin::~DebuggerPlugin()
|
||||||
|
Reference in New Issue
Block a user