============================================================================
| 447 | |
| 448 | //============================================================================ |
| 449 | bool 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 | //============================================================================ |
no test coverage detected