mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-01 16:35:22 -04:00
RollupWidget: fixed collapse section header not showing up. Fixes #608
This commit is contained in:
parent
5d21a4ed59
commit
603ff29241
@ -124,20 +124,24 @@ int RollupWidget::arrangeRollups()
|
|||||||
{
|
{
|
||||||
QWidget* r = qobject_cast<QWidget*>(children()[i]);
|
QWidget* r = qobject_cast<QWidget*>(children()[i]);
|
||||||
|
|
||||||
if ((r != nullptr) && !r->isHidden() && isRollupChild(r))
|
if ((r != nullptr) && isRollupChild(r))
|
||||||
{
|
{
|
||||||
pos += fm.height() + 2;
|
pos += fm.height() + 2;
|
||||||
r->move(2, pos + 3);
|
|
||||||
int h = 0;
|
|
||||||
|
|
||||||
if (r->hasHeightForWidth()) {
|
if (!r->isHidden())
|
||||||
h = r->heightForWidth(width() - 4);
|
{
|
||||||
} else {
|
r->move(2, pos + 3);
|
||||||
h = r->sizeHint().height();
|
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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user