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()
|
||||
{
|
||||
if ( parent() && parent()->layout() ) {
|
||||
parent()->layout()->invalidate();
|
||||
}
|
||||
if ( managingLayout() ) {
|
||||
managingLayout()->invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
QSizeF Widget::sizeHint() const
|
||||
|
Loading…
Reference in New Issue
Block a user