bad contentsSizeHint implementation relying on the current size fixed
This commit is contained in:
parent
247d7cb7a9
commit
148a258160
@ -490,11 +490,11 @@ QSizeF QskDialogSubWindow::contentsSizeHint() const
|
|||||||
h += hint.height() + m.top() + m.bottom();
|
h += hint.height() + m.top() + m.bottom();
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto innerSize = layoutRect().size();
|
const qreal sz = 400.0; // something
|
||||||
const auto outerSize = size();
|
const auto innerSize = layoutRectForSize( QSizeF( sz, sz ) ).size();
|
||||||
|
|
||||||
w += outerSize.width() - innerSize.width();
|
w += sz - innerSize.width();
|
||||||
h += outerSize.height() - innerSize.height();
|
h += sz - innerSize.height();
|
||||||
|
|
||||||
return QSizeF( w, h );
|
return QSizeF( w, h );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user