summaryrefslogtreecommitdiff
path: root/utils/themeeditor/graphics/rbscreen.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/graphics/rbscreen.h')
-rw-r--r--utils/themeeditor/graphics/rbscreen.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/utils/themeeditor/graphics/rbscreen.h b/utils/themeeditor/graphics/rbscreen.h
index 7b8b83060a..358a49e4a7 100644
--- a/utils/themeeditor/graphics/rbscreen.h
+++ b/utils/themeeditor/graphics/rbscreen.h
@@ -28,8 +28,8 @@
28#include "rbrenderinfo.h" 28#include "rbrenderinfo.h"
29#include "rbimage.h" 29#include "rbimage.h"
30#include "rbfont.h" 30#include "rbfont.h"
31 31#include "rbalbumart.h"
32class RBViewport; 32#include "rbviewport.h"
33 33
34class RBScreen : public QGraphicsItem 34class RBScreen : public QGraphicsItem
35{ 35{
@@ -73,6 +73,16 @@ public:
73 QColor foreground(){ return fgColor; } 73 QColor foreground(){ return fgColor; }
74 QColor background(){ return bgColor; } 74 QColor background(){ return bgColor; }
75 75
76 void setAlbumArt(RBAlbumArt* art){ albumArt = art; }
77 void showAlbumArt(RBViewport* view)
78 {
79 if(albumArt)
80 {
81 albumArt->setParentItem(view);
82 albumArt->show();
83 }
84 }
85
76 86
77private: 87private:
78 int width; 88 int width;
@@ -90,6 +100,8 @@ private:
90 QMap<int, RBFont*> fonts; 100 QMap<int, RBFont*> fonts;
91 QList<QString> displayedViewports; 101 QList<QString> displayedViewports;
92 102
103 RBAlbumArt* albumArt;
104
93}; 105};
94 106
95#endif // RBSCREEN_H 107#endif // RBSCREEN_H