diff options
author | Arno <am@disconnect.de> | 2011-04-30 11:20:53 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2011-04-30 11:20:53 +0200 |
commit | f0ac8500b63511a8307f332c4b86670545fc4ca6 (patch) | |
tree | a295e591c9c001f4c873c87a6407717c28f14c79 /pictureviewer.h | |
parent | 9b7075a7fbd3550dec0c98f6d0b4680830324085 (diff) | |
download | SheMov-f0ac8500b63511a8307f332c4b86670545fc4ca6.tar.gz SheMov-f0ac8500b63511a8307f332c4b86670545fc4ca6.tar.bz2 SheMov-f0ac8500b63511a8307f332c4b86670545fc4ca6.zip |
Use BG-Gradient in PictureViewer
Use setGradient in PictureViewer again. Modified it to take the
colors for the gradient from the top left and bottom right of the
QImage.
Diffstat (limited to 'pictureviewer.h')
-rw-r--r-- | pictureviewer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pictureviewer.h b/pictureviewer.h index 83c43d3..d4fba4c 100644 --- a/pictureviewer.h +++ b/pictureviewer.h @@ -31,7 +31,7 @@ class PictureViewer : public QGraphicsView { void wheelEvent(QWheelEvent *event); private: - void setGradient(); + void setGradient(const QImage &img); void setDir(const QString &path); bool isPic(const QString &path); QPointF center(const QPixmap &pic); |