From e2322c885f6dd67834c5110c6b7e2b63ea8b6186 Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Thu, 8 Aug 2013 10:45:22 +0530 Subject: 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 Reviewed-by: Frederik Gladhorn Reviewed-by: Olivier Goffart --- src/widgets/widgets/qsplitter_p.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/widgets/widgets/qsplitter_p.h') 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 rubberBand; mutable QList 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(); } -- cgit v1.2.3