[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kio/kio
From: Johannes Simon <johannes.simon () gmail ! com>
Date: 2010-09-30 23:19:50
Message-ID: 20100930231950.B6FE0AC891 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1181413 by jsimon:
Somehow a QPixmap on Mac OS doesn't support alpha blending
M +9 -2 kfileitemdelegate.cpp
--- trunk/KDE/kdelibs/kio/kio/kfileitemdelegate.cpp #1181412:1181413
@@ -597,9 +597,16 @@
QColor color;
color.setAlphaF(amount);
+// FIXME: Somehow this doesn't work on Mac OS..
+#if defined(Q_OS_MAC)
+ const bool usePixmap = false;
+#else
+ const bool usePixmap = from.paintEngine()->hasFeature(QPaintEngine::PorterDuff) &&
+ from.paintEngine()->hasFeature(QPaintEngine::BlendModes);
+#endif
+
// If the native paint engine supports Porter/Duff compositing and CompositionMode_Plus
- if (from.paintEngine()->hasFeature(QPaintEngine::PorterDuff) &&
- from.paintEngine()->hasFeature(QPaintEngine::BlendModes))
+ if (usePixmap)
{
QPixmap under = from;
QPixmap over = to;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic