blob: abf1da2744918f5ecce3a0c67840db1611508e73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef GRAPHICSWATCHLET_H
#define GRAPHICSWATCHLET_H
#include <QtGui/QGraphicsScene>
#include <QtGui/QRegion>
#include "watchlet.h"
namespace sowatch
{
class GraphicsWatchlet : public Watchlet
{
Q_OBJECT
public:
explicit GraphicsWatchlet(WatchServer* server, const QString& id);
QGraphicsScene* scene();
void setScene(QGraphicsScene* scene);
signals:
public slots:
protected:
QGraphicsScene* _scene;
QRegion _damaged;
protected slots:
void sceneChanged(const QList<QRectF>& region);
};
}
#endif // GRAPHICSWATCHLET_H
|