summaryrefslogtreecommitdiffstats
path: root/pictureviewer2.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2012-03-17 06:15:56 +0100
committerArno <am@disconnect.de>2012-03-17 06:15:56 +0100
commit81aafd665a74ff4de206667ba495109f34294dd5 (patch)
treeb487517a011a7f48f791755193aa706d181f4ff0 /pictureviewer2.h
parentb71a382317cbb81cd876519f9102abee087305d7 (diff)
downloadSheMov-81aafd665a74ff4de206667ba495109f34294dd5.tar.gz
SheMov-81aafd665a74ff4de206667ba495109f34294dd5.tar.bz2
SheMov-81aafd665a74ff4de206667ba495109f34294dd5.zip
Make background color of PictureViewer2 configurable
Add options to ConfigurationDialog to either use a fixed color as background or a gradient picked with random colors picked from the picture.
Diffstat (limited to 'pictureviewer2.h')
-rw-r--r--pictureviewer2.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/pictureviewer2.h b/pictureviewer2.h
index d5d80a4..e93dffc 100644
--- a/pictureviewer2.h
+++ b/pictureviewer2.h
@@ -36,6 +36,7 @@ class PictureViewer2 : public QGraphicsView {
void next();
void previous();
void slide();
+ void readSettings();
protected:
virtual void wheelEvent(QWheelEvent *event);
@@ -47,7 +48,7 @@ class PictureViewer2 : public QGraphicsView {
private:
void setupDialog();
- void setCurPalette(const QPixmap &pic);
+ void setGradient(const QPixmap &pic);
QString constructWindowTitle() const;
PicDataList mFiles;
QGraphicsScene *mScene;
@@ -57,6 +58,8 @@ class PictureViewer2 : public QGraphicsView {
QTimer *mSlideTimer;
const QString mDefaultFile;
PictureViewer2FileinfoItem *mFnItem;
+ bool mUseGradient;
+ QColor mBgColor;
};
class PictureViewer2FileinfoItem : public QGraphicsItem {