Handle macro control signals

This commit is contained in:
WarmUpTill
2021-07-17 17:28:10 +02:00
committed by WarmUpTill
parent d541356fd3
commit 3fc82df278
10 changed files with 450 additions and 53 deletions

View File

@@ -174,6 +174,17 @@ void placeWidgets(std::string text, QBoxLayout *layout,
}
}
void deleteLayoutItem(QLayoutItem *item)
{
if (item) {
auto widget = item->widget();
if (widget) {
widget->setVisible(false);
}
delete item;
}
}
void clearLayout(QLayout *layout)
{
QLayoutItem *item;