diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-04-19 07:08:34 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-04-20 09:39:56 (GMT) |
commit | c0bbdb8a293d0877e8dba517bad50748c70d0dfd (patch) | |
tree | 4249fd9a3c08d7de465c59784bd66a1ad753f214 /src/gui/widgets | |
parent | 85add63738927dc5a0ebfdb27edccfee66ba8caa (diff) | |
download | Qt-c0bbdb8a293d0877e8dba517bad50748c70d0dfd.zip Qt-c0bbdb8a293d0877e8dba517bad50748c70d0dfd.tar.gz Qt-c0bbdb8a293d0877e8dba517bad50748c70d0dfd.tar.bz2 |
ScrollBar width not updated dynamically on Windows.
Whenever the scrollbar width is changed in the system, Windows sends a
WM_SETTINGCHANGE message (with SPI_SETNONCLIENTMETRICS) to all toplevel
windows. This will now call updateGeometry() for all QScrollBar based
widgets and issue a new QEvent::LayoutRequest.
Task-number: QTBUG-9822
Reviewed-by: Jan-Arve
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qabstractscrollarea.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/widgets/qabstractscrollarea.cpp b/src/gui/widgets/qabstractscrollarea.cpp index 73ec53e..8cffebd 100644 --- a/src/gui/widgets/qabstractscrollarea.cpp +++ b/src/gui/widgets/qabstractscrollarea.cpp @@ -983,6 +983,7 @@ bool QAbstractScrollArea::event(QEvent *e) case QEvent::StyleChange: case QEvent::LayoutDirectionChange: case QEvent::ApplicationLayoutDirectionChange: + case QEvent::LayoutRequest: d->layoutChildren(); // fall through default: |