============================================================================
| 222 | |
| 223 | //============================================================================ |
| 224 | bool DockManagerPrivate::restoreContainer(int Index, CDockingStateReader& stream, bool Testing) |
| 225 | { |
| 226 | if (Testing) |
| 227 | { |
| 228 | Index = 0; |
| 229 | } |
| 230 | |
| 231 | bool Result = false; |
| 232 | if (Index >= Containers.count()) |
| 233 | { |
| 234 | CFloatingDockContainer* FloatingWidget = new CFloatingDockContainer(_this); |
| 235 | Result = FloatingWidget->restoreState(stream, Testing); |
| 236 | } |
| 237 | else |
| 238 | { |
| 239 | ADS_PRINT("d->Containers[i]->restoreState "); |
| 240 | auto Container = Containers[Index]; |
| 241 | if (Container->isFloating()) |
| 242 | { |
| 243 | Result = Container->floatingWidget()->restoreState(stream, Testing); |
| 244 | } |
| 245 | else |
| 246 | { |
| 247 | Result = Container->restoreState(stream, Testing); |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | return Result; |
| 252 | } |
| 253 | |
| 254 | |
| 255 | //============================================================================ |
nothing calls this directly
no test coverage detected