summaryrefslogtreecommitdiffstats
path: root/src/maingui/backdrop.h
diff options
context:
space:
mode:
authorSimon Rettberg2015-10-08 19:33:33 +0200
committerSimon Rettberg2015-10-08 19:33:33 +0200
commita163f2b5431ab8b274e7ac2e4b7dbf2299675905 (patch)
tree1a9e935ddf5c201cc268a89b647821b6c2c2d50d /src/maingui/backdrop.h
parentmove msgBox closer to center :) TOFIX (diff)
downloadprintergui-a163f2b5431ab8b274e7ac2e4b7dbf2299675905.tar.gz
printergui-a163f2b5431ab8b274e7ac2e4b7dbf2299675905.tar.xz
printergui-a163f2b5431ab8b274e7ac2e4b7dbf2299675905.zip
Add fullscreen bg to printergui; preserve job name
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_ */