diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-10-27 10:01:45 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-10-27 10:01:45 (GMT) |
commit | dd89851abe4b0d0a3c293b5cadace00eb3f75a47 (patch) | |
tree | effa317031bfdb42e1b6a5c9996e308d78c165d2 | |
parent | b14338cce8cb13003a4943d134502e085f36ab08 (diff) | |
download | Qt-dd89851abe4b0d0a3c293b5cadace00eb3f75a47.zip Qt-dd89851abe4b0d0a3c293b5cadace00eb3f75a47.tar.gz Qt-dd89851abe4b0d0a3c293b5cadace00eb3f75a47.tar.bz2 |
If a QGraphicsWidget gets a StyleChange event, invalidate its layout.
The layout should be invalidated because all layouts are dependent on
some style-specific defaults. (e.g. PM_LayoutHorizontalSpacing can
differ.)
Reviewed-by: alexis
-rw-r--r-- | src/gui/graphicsview/qgraphicswidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget.cpp b/src/gui/graphicsview/qgraphicswidget.cpp index 35a3c13..d70a281 100644 --- a/src/gui/graphicsview/qgraphicswidget.cpp +++ b/src/gui/graphicsview/qgraphicswidget.cpp @@ -1352,6 +1352,8 @@ void QGraphicsWidget::changeEvent(QEvent *event) case QEvent::StyleChange: // ### Don't unset if the margins are explicitly set. unsetWindowFrameMargins(); + if (d->layout) + d->layout->invalidate(); case QEvent::FontChange: update(); updateGeometry(); |