| 615 | } |
| 616 | |
| 617 | void DockWindowManager::loadState() |
| 618 | { |
| 619 | ParameterGrp::handle hPref = App::GetApplication() |
| 620 | .GetUserParameter() |
| 621 | .GetGroup("BaseApp") |
| 622 | ->GetGroup("MainWindow") |
| 623 | ->GetGroup("DockWindows"); |
| 624 | const QList<DockWindowItem>& dockItems = d->_dockWindowItems.dockWidgets(); |
| 625 | for (QList<DockWindowItem>::ConstIterator it = dockItems.begin(); it != dockItems.end(); ++it) { |
| 626 | QDockWidget* dw = findDockWidget(d->_dockedWindows, it->name); |
| 627 | if (dw) { |
| 628 | QByteArray dockName = it->name.toUtf8(); |
| 629 | bool visible = hPref->GetBool(dockName.constData(), it->visibility); |
| 630 | dw->setVisible(visible); |
| 631 | } |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | QDockWidget* DockWindowManager::findDockWidget(const QList<QDockWidget*>& dw, const QString& name) const |
| 636 | { |
no test coverage detected