MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / _resetWindowLayout

Method _resetWindowLayout

ElaWidgetTools/private/ElaWindowPrivate.cpp:274–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274void ElaWindowPrivate::_resetWindowLayout(bool isAnimation)
275{
276 if (isAnimation)
277 {
278 while (_centerLayout->count() > 0)
279 {
280 _centerLayout->takeAt(0);
281 }
282 }
283 else
284 {
285 if (_centerLayout->count() == 0)
286 {
287 _navigationBar->setIsTransparent(true);
288 _navigationBar->setDisplayMode(ElaNavigationType::Minimal, false);
289 _centerLayout->addWidget(_navigationBar);
290 _centerLayout->addWidget(_navigationCenterStackedWidget);
291 }
292 }
293}
294
295void ElaWindowPrivate::_doNavigationDisplayModeChange()
296{

Callers

nothing calls this directly

Calls 5

countMethod · 0.80
takeAtMethod · 0.80
addWidgetMethod · 0.80
setIsTransparentMethod · 0.45
setDisplayModeMethod · 0.45

Tested by

no test coverage detected