diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-06-11 16:49:23 (GMT) |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-06-11 16:49:23 (GMT) |
commit | 213b58ec4401170813801a26708c87032196a5d9 (patch) | |
tree | 0308b5afc42ad9e959213e13867a23b14c3aa37c /src/gui | |
parent | a28afcd379faa0c7af2bec23aef8d4023623e616 (diff) | |
download | Qt-213b58ec4401170813801a26708c87032196a5d9.zip Qt-213b58ec4401170813801a26708c87032196a5d9.tar.gz Qt-213b58ec4401170813801a26708c87032196a5d9.tar.bz2 |
Using QPixmap as paint device.
Makes more sense in this case. At least on X11 and MacOS.
Reviewed-by: Ariya Hidayat
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/styles/qs60style_simulated.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/styles/qs60style_simulated.cpp b/src/gui/styles/qs60style_simulated.cpp index 362e29c..684f232 100644 --- a/src/gui/styles/qs60style_simulated.cpp +++ b/src/gui/styles/qs60style_simulated.cpp @@ -274,7 +274,7 @@ QPixmap QS60StylePrivate::frame(SkinFrameElements frame, const QSize &size, const QRect leftRect = rightRect.translated(cornerWidth - rectWidth, 0); const QRect centerRect = drawOnlyCenter ? rect : rect.adjusted(cornerWidth, cornerWidth, -cornerWidth, -cornerWidth); - QImage result(size, QImage::Format_ARGB32); + QPixmap result(size); result.fill(Qt::transparent); QPainter painter(&result); @@ -303,7 +303,7 @@ QPixmap QS60StylePrivate::frame(SkinFrameElements frame, const QSize &size, drawPart(center, &painter, centerRect, flags); #endif - return QPixmap::fromImage(result); + return result; } void QS60StylePrivate::setStyleProperty_specific(const char *name, const QVariant &value) |