diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-04 08:44:30 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-04 10:56:00 (GMT) |
commit | b35d0b78dd9212a1db45b07e63a8ec573ec2ecd7 (patch) | |
tree | c75254e1b9ffb2d07bde2752bd9af463e6d0cf8b /src/gui/styles/qcommonstyle.cpp | |
parent | f87b5e49bb3903676a57a69b9bbe1743141926c8 (diff) | |
download | Qt-b35d0b78dd9212a1db45b07e63a8ec573ec2ecd7.zip Qt-b35d0b78dd9212a1db45b07e63a8ec573ec2ecd7.tar.gz Qt-b35d0b78dd9212a1db45b07e63a8ec573ec2ecd7.tar.bz2 |
Stylesheet: Do not crop the text in tabs
Because we did not reiimplement SE_TabBarTabText to force the
parentstyle to call the virtual function back, we got the normal style
margins in addition to the one by the stylesheet.
Also added test for !hasNativeBorder to suport cases where we just
specify a border
Reviewed-by: jbache
Task-number: 196326
Diffstat (limited to 'src/gui/styles/qcommonstyle.cpp')
-rw-r--r-- | src/gui/styles/qcommonstyle.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/styles/qcommonstyle.cpp b/src/gui/styles/qcommonstyle.cpp index 41f9ec0..7fefb19 100644 --- a/src/gui/styles/qcommonstyle.cpp +++ b/src/gui/styles/qcommonstyle.cpp @@ -1882,7 +1882,6 @@ void QCommonStyle::drawControl(ControlElement element, const QStyleOption *opt, break; case CE_TabBarTabLabel: if (const QStyleOptionTab *tab = qstyleoption_cast<const QStyleOptionTab *>(opt)) { - // ### consider merging this with SE_TabBarTabText QStyleOptionTabV3 tabV2(*tab); QRect tr = tabV2.rect; bool verticalTabs = tabV2.shape == QTabBar::RoundedEast |