managingLayout() is a better way to get the layout managing the widget's geometry than parent()->layout() which doesn't work for top-level Widget instances.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=709899
This commit is contained in:
parent
3dc0a4795f
commit
37b4ea6334
@ -180,9 +180,9 @@ void Widget::setGeometry(const QRectF& geometry)
|
|||||||
|
|
||||||
void Widget::updateGeometry()
|
void Widget::updateGeometry()
|
||||||
{
|
{
|
||||||
if ( parent() && parent()->layout() ) {
|
if ( managingLayout() ) {
|
||||||
parent()->layout()->invalidate();
|
managingLayout()->invalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QSizeF Widget::sizeHint() const
|
QSizeF Widget::sizeHint() const
|
||||||
|
Loading…
Reference in New Issue
Block a user