summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qsplitter_p.h
diff options
context:
space:
mode:
authorRohan Garg <rohan@kde.org>2013-08-08 10:45:22 +0530
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-20 20:09:20 +0200
commite2322c885f6dd67834c5110c6b7e2b63ea8b6186 (patch)
treef3d42b0f3060dbdf7b30f3acd44c39dc5a89332b /src/widgets/widgets/qsplitter_p.h
parent692bee634e9add44ae38fe2e4dd140319687facd (diff)
Extend QStyle API with a SH_Splitter_OpaqueResize styleHint
Currently the default for QSplitter::opaqueResize is hard coded, which is less than ideal. Instead this should be provided as a style hint via QStyle so as to give a more uniform look to all applications. Change-Id: I5711811f7b672e36aafcd292ed320308570a0390 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets/widgets/qsplitter_p.h')
-rw-r--r--src/widgets/widgets/qsplitter_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/widgets/qsplitter_p.h b/src/widgets/widgets/qsplitter_p.h
index f1e050b8f6..0d0e134f58 100644
--- a/src/widgets/widgets/qsplitter_p.h
+++ b/src/widgets/widgets/qsplitter_p.h
@@ -83,7 +83,7 @@ class QSplitterPrivate : public QFramePrivate
Q_DECLARE_PUBLIC(QSplitter)
public:
QSplitterPrivate() : rubberBand(0), opaque(true), firstShow(true),
- childrenCollapsible(true), compatMode(false), handleWidth(-1), blockChildAdd(false) {}
+ childrenCollapsible(true), compatMode(false), handleWidth(-1), blockChildAdd(false), opaqueResizeSet(false) {}
QPointer<QRubberBand> rubberBand;
mutable QList<QSplitterLayoutStruct *> list;
@@ -94,6 +94,7 @@ public:
bool compatMode : 8;
int handleWidth;
bool blockChildAdd;
+ bool opaqueResizeSet;
inline int pick(const QPoint &pos) const
{ return orient == Qt::Horizontal ? pos.x() : pos.y(); }