summaryrefslogtreecommitdiff
path: root/tizen/src/ui/skinpainter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tizen/src/ui/skinpainter.cpp')
-rw-r--r--tizen/src/ui/skinpainter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tizen/src/ui/skinpainter.cpp b/tizen/src/ui/skinpainter.cpp
index 0dac529d34..2c2bb3d3dc 100644
--- a/tizen/src/ui/skinpainter.cpp
+++ b/tizen/src/ui/skinpainter.cpp
@@ -88,12 +88,11 @@ void SkinPainter::drawSkin(QString patchPath, QSize center, int degree,
painter.drawEllipse(tagLeftTop, COLOR_TAG_SIZE, COLOR_TAG_SIZE);
/* rotate */
- QMatrix matrix;
- matrix.rotate(degree);
- skin = new QPixmap(image.transformed(matrix));
+ QTransform transform;
+ skin = new QPixmap(image.transformed(transform.rotate(degree)));
centeralRect = QRect(
- centeralRect0.topLeft(), matrix.mapRect(centeralRect0).size());
+ centeralRect0.topLeft(), transform.mapRect(centeralRect0).size());
}
QImage SkinPainter::getSkinImage() const