mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-26 14:05:33 -04:00
RollupWidget: fixed collapse section header not showing up. Fixes #608
This commit is contained in:
parent
5d21a4ed59
commit
603ff29241
@ -124,9 +124,12 @@ 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;
|
||||||
|
|
||||||
|
if (!r->isHidden())
|
||||||
|
{
|
||||||
r->move(2, pos + 3);
|
r->move(2, pos + 3);
|
||||||
int h = 0;
|
int h = 0;
|
||||||
|
|
||||||
@ -140,6 +143,7 @@ int RollupWidget::arrangeRollups()
|
|||||||
pos += r->height() + 5;
|
pos += r->height() + 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
setMinimumHeight(pos);
|
setMinimumHeight(pos);
|
||||||
setMaximumHeight(pos);
|
setMaximumHeight(pos);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user