summaryrefslogtreecommitdiffstats
path: root/src/backdrop.h
blob: b798a89563d6e1923959f972776ea9fd0076bfe9 (plain) (blame)
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
#ifndef BACKDROP_H_
#define BACKDROP_H_

#include <QWidget>

class QPixmap;

class Backdrop : public QWidget
{
	Q_OBJECT

private:
	const QPixmap * screenshot;
	QWidget * mainWindow;

protected:
	virtual void paintEvent(QPaintEvent * event);
	virtual void mouseReleaseEvent(QMouseEvent * event);

public:
	explicit Backdrop();
	virtual ~Backdrop();
	void setMainWindow(QWidget *win) { mainWindow = win; }
};

#endif /* BACKDROP_H_ */