MCPcopy Create free account
hub / github.com/KDE/labplot / restoreState

Method restoreState

src/3rdparty/Qt-Advanced-Docking-System/src/DockManager.cpp:449–474  ·  view source on GitHub ↗

============================================================================

Source from the content-addressed store, hash-verified

447
448//============================================================================
449bool DockManagerPrivate::restoreState(const QByteArray& State, int version)
450{
451 QByteArray state = State.startsWith("<?xml") ? State : qUncompress(State);
452 if (!checkFormat(state, version))
453 {
454 ADS_PRINT("checkFormat: Error checking format!!!!!!!");
455 return false;
456 }
457
458 // Hide updates of floating widgets from use
459 hideFloatingWidgets();
460 markDockWidgetsDirty();
461
462 if (!restoreStateFromXml(state, version))
463 {
464 ADS_PRINT("restoreState: Error restoring state!!!!!!!");
465 return false;
466 }
467
468 restoreDockWidgetsOpenState();
469 restoreDockAreasIndices();
470 emitTopLevelEvents();
471 _this->dumpLayout();
472
473 return true;
474}
475
476
477//============================================================================

Callers 3

restoreContainerMethod · 0.45
openProjectMethod · 0.45

Calls 3

showFunction · 0.85
dumpLayoutMethod · 0.80
isHiddenMethod · 0.45

Tested by

no test coverage detected