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

Method reset

src/3rdparty/Qt-Advanced-Docking-System/src/DockOverlay.cpp:923–941  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

921
922//============================================================================
923void CDockOverlayCross::reset()
924{
925 QList<DockWidgetArea> allAreas;
926 allAreas << TopDockWidgetArea << RightDockWidgetArea
927 << BottomDockWidgetArea << LeftDockWidgetArea << CenterDockWidgetArea;
928 const DockWidgetAreas allowedAreas = d->DockOverlay->allowedAreas();
929
930 // Update visibility of area widgets based on allowedAreas.
931 for (int i = 0; i < allAreas.count(); ++i)
932 {
933 QPoint p = d->areaGridPosition(allAreas.at(i));
934 QLayoutItem* item = d->GridLayout->itemAtPosition(p.x(), p.y());
935 QWidget* w = nullptr;
936 if (item && (w = item->widget()) != nullptr)
937 {
938 w->setVisible(allowedAreas.testFlag(allAreas.at(i)));
939 }
940 }
941}
942
943
944//============================================================================

Callers 8

CellLocationMethod · 0.45
OriginFileMethod · 0.45
setAllowedAreasMethod · 0.45
setAllowedAreaMethod · 0.45
factoryMethod · 0.45
setFactoryMethod · 0.45
resetDefaultFactoryMethod · 0.45
IntervalTreeMethod · 0.45

Calls 7

areaGridPositionMethod · 0.80
xMethod · 0.80
allowedAreasMethod · 0.45
countMethod · 0.45
yMethod · 0.45
widgetMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected