summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qmotifstyle.cpp
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2009-05-14 14:42:13 (GMT)
committerJens Bache-Wiig <jbache@trolltech.com>2009-05-14 14:49:26 (GMT)
commitbacdcc7d2ed4816688c19ddbffa8d3aab98b2123 (patch)
tree940509dfd70698dfff20a1129c2884f24224701a /src/gui/styles/qmotifstyle.cpp
parentd8a5799de2be228c10faaaa3e6f4c7eb07793b9c (diff)
downloadQt-bacdcc7d2ed4816688c19ddbffa8d3aab98b2123.zip
Qt-bacdcc7d2ed4816688c19ddbffa8d3aab98b2123.tar.gz
Qt-bacdcc7d2ed4816688c19ddbffa8d3aab98b2123.tar.bz2
Fix QSplitter::setHandleWidth to work with motif style
Motif style was incorrectly adjusting it's size in sizeFromConents. This is wrong and prevents the function from overriding the huge minimum size on the widget. PM_SplitterWidth already ensures the proper default size for the splitter. Task-number: 194542 Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/styles/qmotifstyle.cpp')
-rw-r--r--src/gui/styles/qmotifstyle.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gui/styles/qmotifstyle.cpp b/src/gui/styles/qmotifstyle.cpp
index 7d4fab8..be0e3eb 100644
--- a/src/gui/styles/qmotifstyle.cpp
+++ b/src/gui/styles/qmotifstyle.cpp
@@ -2026,10 +2026,6 @@ QMotifStyle::sizeFromContents(ContentsType ct, const QStyleOption *opt,
QSize sz(contentsSize);
switch(ct) {
- case CT_Splitter:
- sz = QSize(10, 10);
- break;
-
case CT_RadioButton:
case CT_CheckBox:
sz = QCommonStyle::sizeFromContents(ct, opt, contentsSize, widget);