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:
parent
5d21a4ed59
commit
603ff29241
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user