From f0ac8500b63511a8307f332c4b86670545fc4ca6 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 30 Apr 2011 11:20:53 +0200 Subject: 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. --- pictureviewer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pictureviewer.h') 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); -- cgit v1.2.3-70-g09d2