summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qsplitter.cpp
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2014-09-12 17:49:59 +0400
committerAlexander Volkov <a.volkov@rusbitech.ru>2014-09-16 20:35:31 +0200
commit80ca159b47f5923466301bc9a5f5e042c1c47ca1 (patch)
tree7c1a7d8e864dc6c4478aaf0f8e95a7a2a239fc42 /src/widgets/widgets/qsplitter.cpp
parenteb6507039f3a991f446b58500343086c26b243b3 (diff)
Fix saving handle width in QSplitter::saveState()
QSplitter::handleWidth() returns either a style dependent value if d->handleWidth is negative or the value of d->handleWidth itself. So to preserve this choice after calling saveState()/restoreState() we should save and restore the value of d->handleWidth rather than a result of handleWidth() which is non-negative. Change-Id: Idc11f8063d34b6c4a5f9b0a0032868679766dfb9 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/widgets/widgets/qsplitter.cpp')
-rw-r--r--src/widgets/widgets/qsplitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/widgets/qsplitter.cpp b/src/widgets/widgets/qsplitter.cpp
index 1f29af319a..9713af1a7a 100644
--- a/src/widgets/widgets/qsplitter.cpp
+++ b/src/widgets/widgets/qsplitter.cpp
@@ -1609,7 +1609,7 @@ QByteArray QSplitter::saveState() const
}
stream << list;
stream << childrenCollapsible();
- stream << qint32(handleWidth());
+ stream << qint32(d->handleWidth);
stream << opaqueResize();
stream << qint32(orientation());
stream << d->opaqueResizeSet;