1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-17 05:41:56 -05: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,20 +124,24 @@ 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;
r->move(2, pos + 3);
int h = 0;
if (r->hasHeightForWidth()) {
h = r->heightForWidth(width() - 4);
} else {
h = r->sizeHint().height();
if (!r->isHidden())
{
r->move(2, pos + 3);
int h = 0;
if (r->hasHeightForWidth()) {
h = r->heightForWidth(width() - 4);
} else {
h = r->sizeHint().height();
}
r->resize(width() - 4, h);
pos += r->height() + 5;
}
r->resize(width() - 4, h);
pos += r->height() + 5;
}
}