summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qstyle_p.h
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2009-06-04 09:37:08 (GMT)
committerjasplin <qt-info@nokia.com>2009-06-04 09:42:50 (GMT)
commit59653437cbc37f9644aa540c46701c2142939198 (patch)
treef2369dc4418e28646c6e55a9ded1f89a4892229f /src/gui/styles/qstyle_p.h
parent0a37c9bbf9dc95e0ad422007718a7af11b046deb (diff)
downloadQt-59653437cbc37f9644aa540c46701c2142939198.zip
Qt-59653437cbc37f9644aa540c46701c2142939198.tar.gz
Qt-59653437cbc37f9644aa540c46701c2142939198.tar.bz2
Removed the internal UsePixmapCache flag in the style code.
In the style code, the internal UsePixmapCache flag made no sense in practice, so it was removed. A fortunate side-effect of the patch is that the code is now accepted by Sun CC 5.5. Reviewed-by: jbache
Diffstat (limited to 'src/gui/styles/qstyle_p.h')
-rw-r--r--src/gui/styles/qstyle_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qstyle_p.h b/src/gui/styles/qstyle_p.h
index 848bad6..154321a 100644
--- a/src/gui/styles/qstyle_p.h
+++ b/src/gui/styles/qstyle_p.h
@@ -77,7 +77,7 @@ public:
QPainter *p = painter; \
QString unique = uniqueName((a), option, option->rect.size()); \
int txType = painter->deviceTransform().type() | painter->worldTransform().type(); \
- bool doPixmapCache = UsePixmapCache && txType <= QTransform::TxTranslate; \
+ bool doPixmapCache = txType <= QTransform::TxTranslate; \
if (doPixmapCache && QPixmapCache::find(unique, internalPixmapCache)) { \
painter->drawPixmap(option->rect.topLeft(), internalPixmapCache); \
} else { \