summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qsplitter.h
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2010-03-24 14:23:22 (GMT)
committerJens Bache-Wiig <jbache@trolltech.com>2010-03-24 14:48:26 (GMT)
commit71ced8e9d2a8cc363a6e8a039e9431ecf8cf9a01 (patch)
treec79ad312606a5e586b06e5a0c582148fa738125d /src/gui/widgets/qsplitter.h
parent2a350684c60fd0225234e77d0a01b01471bc9ea8 (diff)
downloadQt-71ced8e9d2a8cc363a6e8a039e9431ecf8cf9a01.zip
Qt-71ced8e9d2a8cc363a6e8a039e9431ecf8cf9a01.tar.gz
Qt-71ced8e9d2a8cc363a6e8a039e9431ecf8cf9a01.tar.bz2
Give 1-pixel splitters a larger grab area
This is a trick we have applied to Qt Creator for a while and it makes sense to backport this into Qt. Essentially 1-pixel splitters are unusable at the moment. With this fix the actual splitter handle will be 5 pixels wide and slightly overlap neighbouring widgets. The layout code in QSplitter alreadu use the contentsRect to support this behavior. Task-number: QTBUG-9335 Reviewed-by: thierry
Diffstat (limited to 'src/gui/widgets/qsplitter.h')
-rw-r--r--src/gui/widgets/qsplitter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/widgets/qsplitter.h b/src/gui/widgets/qsplitter.h
index a793f24..c3b304d 100644
--- a/src/gui/widgets/qsplitter.h
+++ b/src/gui/widgets/qsplitter.h
@@ -172,6 +172,7 @@ protected:
void mouseMoveEvent(QMouseEvent *);
void mousePressEvent(QMouseEvent *);
void mouseReleaseEvent(QMouseEvent *);
+ void resizeEvent(QResizeEvent *);
bool event(QEvent *);
void moveSplitter(int p);