MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / DeleteLayoutItemWidget

Function DeleteLayoutItemWidget

lib/utils/layout-helpers.cpp:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void DeleteLayoutItemWidget(QLayoutItem *item)
64{
65 if (item) {
66 auto widget = item->widget();
67 if (widget) {
68 widget->setVisible(false);
69 widget->deleteLater();
70 }
71 delete item;
72 }
73}
74
75void ClearLayout(QLayout *layout, int afterIdx)
76{

Callers 2

RemoveMethod · 0.85
ClearLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected