summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2010-04-20 12:01:06 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2010-04-21 07:33:29 (GMT)
commitdd5d297d2969795a47ef7a5234b64a791e080c38 (patch)
treeda4c25057028067b7b6992f3c7e19c7425bea49c /src/gui/widgets
parentee3841ae90156f991717376f34921de97e47097c (diff)
downloadQt-dd5d297d2969795a47ef7a5234b64a791e080c38.zip
Qt-dd5d297d2969795a47ef7a5234b64a791e080c38.tar.gz
Qt-dd5d297d2969795a47ef7a5234b64a791e080c38.tar.bz2
Made sure that QTabWidget reported a big enough size hint.
This avoids some minor clipping issues observed (see autotest). Reviewed-by: MortenS
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qtabwidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/qtabwidget.cpp b/src/gui/widgets/qtabwidget.cpp
index 047a905..583c112 100644
--- a/src/gui/widgets/qtabwidget.cpp
+++ b/src/gui/widgets/qtabwidget.cpp
@@ -814,8 +814,8 @@ QSize QTabWidget::sizeHint() const
{
Q_D(const QTabWidget);
QSize lc(0, 0), rc(0, 0);
- QStyleOption opt(0);
- opt.init(this);
+ QStyleOptionTabWidgetFrameV2 opt;
+ initStyleOption(&opt);
opt.state = QStyle::State_None;
if (d->leftCornerWidget)
@@ -863,8 +863,8 @@ QSize QTabWidget::minimumSizeHint() const
QSize sz = basicSize(d->pos == North || d->pos == South, lc, rc, s, t);
- QStyleOption opt(0);
- opt.rect = rect();
+ QStyleOptionTabWidgetFrameV2 opt;
+ initStyleOption(&opt);
opt.palette = palette();
opt.state = QStyle::State_None;
return style()->sizeFromContents(QStyle::CT_TabWidget, &opt, sz, this)