Tab shapes have the wrong size and distance between them on Symbian
commitbf4f779f633f0a26b7721aab62c46dc27605b825
authorSami Merilä <sami.merila@nokia.com>
Thu, 12 Nov 2009 10:49:11 +0000 (12 12:49 +0200)
committerJason McDonald <jason.mcdonald@nokia.com>
Wed, 18 Nov 2009 05:57:32 +0000 (18 15:57 +1000)
treecc674fbb17c73f6d4b51f26c556a537888712017
parentd6d5dd13b4464676898409ac505d9ab2aef09d8d
Tab shapes have the wrong size and distance between them on Symbian

With certain themes it is really apparent that the tabshape rect and
position deduction in QS60Style has some issues. See for example
5800Xm's default theme. TabShapes have huge spaces between them.

Problem is that the initializer in style for tab shape assumes
that the side parts of the frame are squares and will use 1:1 ratio
(width:height) when upscaling the theme graphic draw area.
This leads to that tabshape graphics will not fill in the
whole area reserved for them.

When initial area has ratio of 1:2 (for horizontal tab shape),
upscaling pruduces correct rect and graphic is drawn correctly.

Task-number: QTBUG-5659
Reviewed-by: Alessandro Portale
(cherry picked from commit 3826d81d96c53f253f2f75683cd1802faa1628df)
src/gui/styles/qs60style.cpp