diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-03-30 11:33:45 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-03-30 13:47:35 (GMT) |
commit | e20d18f1982dde2b0fa9bd262e5aadd1e451a7fa (patch) | |
tree | dff54c6720e57718626946437047591c52b0e377 /src/gui/widgets/qsplitter_p.h | |
parent | efbbb0ea53dfb8350f3f9b46dd5dc934051cedc7 (diff) | |
download | Qt-e20d18f1982dde2b0fa9bd262e5aadd1e451a7fa.zip Qt-e20d18f1982dde2b0fa9bd262e5aadd1e451a7fa.tar.gz Qt-e20d18f1982dde2b0fa9bd262e5aadd1e451a7fa.tar.bz2 |
Allow styling of pressed splitter
Task-number: 206494
Reviewed-by: Jens Bache-Wiig
Diffstat (limited to 'src/gui/widgets/qsplitter_p.h')
-rw-r--r-- | src/gui/widgets/qsplitter_p.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/widgets/qsplitter_p.h b/src/gui/widgets/qsplitter_p.h index 5cc43af..9f6fe0c 100644 --- a/src/gui/widgets/qsplitter_p.h +++ b/src/gui/widgets/qsplitter_p.h @@ -131,16 +131,17 @@ class QSplitterHandlePrivate : public QWidgetPrivate { Q_DECLARE_PUBLIC(QSplitterHandle) public: - QSplitterHandlePrivate() : orient(Qt::Horizontal), opaq(false), s(0), mouseOffset(0) {} + QSplitterHandlePrivate() : s(0), orient(Qt::Horizontal), mouseOffset(0), opaq(false), hover(false), pressed(false) {} inline int pick(const QPoint &pos) const { return orient == Qt::Horizontal ? pos.x() : pos.y(); } - Qt::Orientation orient; - bool opaq; QSplitter *s; - bool hover; + Qt::Orientation orient; int mouseOffset; + bool opaq : 1; + bool hover : 1; + bool pressed : 1; }; QT_END_NAMESPACE |