1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-06-24 21:15:24 -04:00

RollupWidget: fixed collapse section header not showing up. Fixes #608

This commit is contained in:
f4exb 2020-08-24 19:42:25 +02:00
parent 5d21a4ed59
commit 603ff29241

View File

@ -124,9 +124,12 @@ int RollupWidget::arrangeRollups()
{
QWidget* r = qobject_cast<QWidget*>(children()[i]);
if ((r != nullptr) && !r->isHidden() && isRollupChild(r))
if ((r != nullptr) && isRollupChild(r))
{
pos += fm.height() + 2;
if (!r->isHidden())
{
r->move(2, pos + 3);
int h = 0;
@ -140,6 +143,7 @@ int RollupWidget::arrangeRollups()
pos += r->height() + 5;
}
}
}
setMinimumHeight(pos);
setMaximumHeight(pos);