diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-08-27 13:04:30 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-08-27 14:55:31 (GMT) |
commit | de1f8b826fafccd9a528a000cf99d6a1f553855b (patch) | |
tree | 4baebad9c166d4ead43474b99f756db4ff3059e6 /src/gui/widgets/qtabbar.cpp | |
parent | 8dd8090f5f5c4bfddef87d9244a353f42ddf9db4 (diff) | |
download | Qt-de1f8b826fafccd9a528a000cf99d6a1f553855b.zip Qt-de1f8b826fafccd9a528a000cf99d6a1f553855b.tar.gz Qt-de1f8b826fafccd9a528a000cf99d6a1f553855b.tar.bz2 |
QTabBar: Fix the position of button in tabs.
Use the PM_TabBarTabHSpace instead of the hardcoded '6'
Use a spacing of 4px instead of 2px between the buttons and the text.
Reviewed-by: jbache
Diffstat (limited to 'src/gui/widgets/qtabbar.cpp')
-rw-r--r-- | src/gui/widgets/qtabbar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/qtabbar.cpp b/src/gui/widgets/qtabbar.cpp index f3775c2..531c429 100644 --- a/src/gui/widgets/qtabbar.cpp +++ b/src/gui/widgets/qtabbar.cpp @@ -1311,12 +1311,12 @@ QSize QTabBar::tabSizeHint(int index) const int widgetHeight = 0; int padding = 0; if (!opt.leftButtonSize.isEmpty()) { - padding += 6 + 2; + padding += 4; widgetWidth += opt.leftButtonSize.width(); widgetHeight += opt.leftButtonSize.height(); } if (!opt.rightButtonSize.isEmpty()) { - padding += 6 + 2; + padding += 4; widgetWidth += opt.rightButtonSize.width(); widgetHeight += opt.rightButtonSize.height(); } |