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

Method restoreContainer

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

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

Source from the content-addressed store, hash-verified

222
223//============================================================================
224bool 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//============================================================================

Callers

nothing calls this directly

Calls 4

floatingWidgetMethod · 0.80
countMethod · 0.45
restoreStateMethod · 0.45
isFloatingMethod · 0.45

Tested by

no test coverage detected