/**************************************************************************
- Ghosts Overboard - a game for Maemo 5
+ Ghosts Overboard - a game for 'Meego 1.2 Harmattan'
Copyright (C) 2011 Heli Hyvättinen
#ifndef SEAVIEW_H
#define SEAVIEW_H
-#include <QGraphicsView>
+#include <QDeclarativeView>
+#include "seascene.h"
-class SeaView : public QGraphicsView
+class SeaView : public QDeclarativeView
{
Q_OBJECT
public:
explicit SeaView(QWidget *parent = 0);
- virtual void mousePressEvent(QMouseEvent *event);
+ virtual void mousePressEvent(QMouseEvent *event);
+
+ bool event(QEvent *event);
signals:
- void pauseChanged();
+ void screenTapped();
+
+ void goingBackgroung();
+
+ void goingForeground();
public slots:
+ void initializeBoundaries();
+
+protected:
+
+ SeaScene * pScene_;
+
};
#endif // SEAVIEW_H