summaryrefslogtreecommitdiff
path: root/src/gui/effects/qgraphicseffect_p.h
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-08-21 17:49:25 +0200
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-08-21 18:04:18 +0200
commit06d43c3a1ded89dc91336daa467d75f4fb3ad414 (patch)
tree0741075794a26b59c616c24baa30f704e70e2a8d /src/gui/effects/qgraphicseffect_p.h
parentfdc159ad6fd03d0e179e7dde7fe47e592936573c (diff)
downloadqt4-tools-06d43c3a1ded89dc91336daa467d75f4fb3ad414.tar.gz
Add QGraphicsOpacityEffect.
This is a common effect that many many customers have asked for. Reviewed-by: Samuel
Diffstat (limited to 'src/gui/effects/qgraphicseffect_p.h')
-rw-r--r--src/gui/effects/qgraphicseffect_p.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/effects/qgraphicseffect_p.h b/src/gui/effects/qgraphicseffect_p.h
index 35f2d40cbe..f5d0e80aee 100644
--- a/src/gui/effects/qgraphicseffect_p.h
+++ b/src/gui/effects/qgraphicseffect_p.h
@@ -160,6 +160,16 @@ public:
QPixmapDropShadowFilter *filter;
};
+class QGraphicsOpacityEffectPrivate : public QGraphicsEffectPrivate
+{
+ Q_DECLARE_PUBLIC(QGraphicsOpacityEffect)
+public:
+ QGraphicsOpacityEffectPrivate() : opacity(0.7) {}
+ ~QGraphicsOpacityEffectPrivate() {}
+
+ qreal opacity;
+};
+
QT_END_NAMESPACE
#endif // QGRAPHICSEFFECT_P_H