Commit 3baf7b981a8f40ed13c2ffb62d2188a16005f69c

fix regression from Qt 4.5 wrt missing text pixels in QTabBar

The line spacing fix showed a bug in QCommonStylePrivate::tabLayout.
  Since QFontMetrics::height() now usually returns one pixel less than
in Qt 4.5, the tab bar is one pixel smaller.
Squeezing the tab rect vertically can result in missing pixels.
This depends on anti-aliasing settings and font size.
  The new behaviour in tabLayout is now: If we have to shift the tab
rect, then we move its position instead of changing its height.

Task-number: QTBUG-7137
Reviewed-by: jbache
  
11491149 int vpadding = proxyStyle->pixelMetric(QStyle::PM_TabBarTabVSpace, opt, widget) / 2;
11501150 if (opt->shape == QTabBar::RoundedSouth || opt->shape == QTabBar::TriangularSouth)
11511151 verticalShift = -verticalShift;
1152 tr.adjust(hpadding, vpadding, horizontalShift - hpadding, verticalShift - vpadding);
1152 tr.adjust(hpadding, verticalShift - vpadding, horizontalShift - hpadding, vpadding);
11531153 bool selected = opt->state & QStyle::State_Selected;
11541154 if (selected) {
1155 tr.setBottom(tr.bottom() - verticalShift);
1155 tr.setTop(tr.top() - verticalShift);
11561156 tr.setRight(tr.right() - horizontalShift);
11571157 }
11581158