summaryrefslogtreecommitdiff
path: root/noncore/styles/theme/ogfxeffect.h
authorsandman <sandman>2002-11-01 16:07:10 (UTC)
committer sandman <sandman>2002-11-01 16:07:10 (UTC)
commit9e4d914ade0af86707531a80e93a870e52738ce6 (patch) (side-by-side diff)
tree13bcdec43e9d1afc7392ce44cd72ff1289f0c8eb /noncore/styles/theme/ogfxeffect.h
parent28b70b2b7f8fa03ba0991fb73dccf7b46e5c3d1f (diff)
downloadopie-9e4d914ade0af86707531a80e93a870e52738ce6.zip
opie-9e4d914ade0af86707531a80e93a870e52738ce6.tar.gz
opie-9e4d914ade0af86707531a80e93a870e52738ce6.tar.bz2
Some fixes and enhancements:
- don't rely on clipping information from Qt/E -- this doesn't work - theme style has support for all KDE gradient types now
Diffstat (limited to 'noncore/styles/theme/ogfxeffect.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/styles/theme/ogfxeffect.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/styles/theme/ogfxeffect.h b/noncore/styles/theme/ogfxeffect.h
index 45a8482..755537f 100644
--- a/noncore/styles/theme/ogfxeffect.h
+++ b/noncore/styles/theme/ogfxeffect.h
@@ -48,6 +48,9 @@ public:
static QPixmap& gradient(QPixmap& pixmap, const QColor &ca, const QColor &cb,
GradientType type, int ncols=3);
+ static QImage gradient (const QSize &size, const QColor &ca, const QColor &cb,
+ GradientType type, int ncols=3);
+
/**
* Blend the provided pixmap into a background of the indicated color