summaryrefslogtreecommitdiffstats
path: root/weather/src/fakecontentscreen.h
diff options
context:
space:
mode:
Diffstat (limited to 'weather/src/fakecontentscreen.h')
-rw-r--r--weather/src/fakecontentscreen.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/weather/src/fakecontentscreen.h b/weather/src/fakecontentscreen.h
new file mode 100644
index 0000000..09c788a
--- /dev/null
+++ b/weather/src/fakecontentscreen.h
@@ -0,0 +1,30 @@
+#ifndef FAKECONTENTSCREEN_H
+#define FAKECONTENTSCREEN_H
+
+#include <QObject>
+#include <QGraphicsItem>
+
+class FakeContentScreen : public QObject, public QGraphicsItem
+{
+ Q_OBJECT
+ Q_INTERFACES(QGraphicsItem)
+public:
+ FakeContentScreen(QGraphicsItem *parent = 0);
+ static int loadImages();
+
+ QRectF boundingRect() const;
+ void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
+
+protected:
+ void mousePressEvent(QGraphicsSceneMouseEvent *event);
+
+private:
+ const QRectF m_boundingRect;
+ QPixmap m_left;
+ QPixmap m_right;
+
+signals:
+ void userAccepted();
+};
+
+#endif // FAKECONTENTSCREEN_H