summaryrefslogtreecommitdiffstats
path: root/src/maingui/backdrop.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/maingui/backdrop.h')
-rw-r--r--src/maingui/backdrop.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/maingui/backdrop.h b/src/maingui/backdrop.h
new file mode 100644
index 0000000..b798a89
--- /dev/null
+++ b/src/maingui/backdrop.h
@@ -0,0 +1,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_ */