summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qs60style.cpp
diff options
context:
space:
mode:
authorSami Merilä <sami.merila@nokia.com>2009-05-08 09:48:27 (GMT)
committerSami Merilä <sami.merila@nokia.com>2009-05-08 09:48:27 (GMT)
commit01ca7972a2b046161519ad1d0e176268305dbf74 (patch)
tree061679b3bc84ecb58d3bbeb340f48b5b5c051d75 /src/gui/styles/qs60style.cpp
parent59269e19f8e8ae2d9ab8edddab7379cf3ed91891 (diff)
downloadQt-01ca7972a2b046161519ad1d0e176268305dbf74.zip
Qt-01ca7972a2b046161519ad1d0e176268305dbf74.tar.gz
Qt-01ca7972a2b046161519ad1d0e176268305dbf74.tar.bz2
S60Style: Slightly bigger node icons for QTreeView
Diffstat (limited to 'src/gui/styles/qs60style.cpp')
-rw-r--r--src/gui/styles/qs60style.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 388129b..041e151 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -2088,8 +2088,11 @@ void QS60Style::drawPrimitive(PrimitiveElement element, const QStyleOption *opti
if (option->state & State_Children) {
QS60StyleEnums::SkinParts skinPart =
(option->state & State_Open) ? QS60StyleEnums::SP_QgnIndiHlColSuper : QS60StyleEnums::SP_QgnIndiHlExpSuper;
- const int minDimension = qMin(option->rect.width(), option->rect.height());
- const QRect iconRect(option->rect.topLeft(), QSize(minDimension, minDimension));
+ int minDimension = qMin(option->rect.width(), option->rect.height());
+ const int resizeValue = minDimension >> 1;
+ minDimension += resizeValue; // Adjust the icon bigger because of empty space in svg icon.
+ QRect iconRect(option->rect.topLeft(), QSize(minDimension, minDimension));
+ iconRect.translate(3, 2 - resizeValue);
QS60StylePrivate::drawSkinPart(skinPart, painter, iconRect, flags);
}