summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/divepixmapitem.cpp5
-rw-r--r--qt-ui/profile/divepixmapitem.h17
2 files changed, 22 insertions, 0 deletions
diff --git a/qt-ui/profile/divepixmapitem.cpp b/qt-ui/profile/divepixmapitem.cpp
new file mode 100644
index 000000000..5065396fb
--- /dev/null
+++ b/qt-ui/profile/divepixmapitem.cpp
@@ -0,0 +1,5 @@
+#include "divepixmapitem.h"
+
+DivePixmapItem::DivePixmapItem(QObject* parent): QObject(parent), QGraphicsPixmapItem()
+{
+} \ No newline at end of file
diff --git a/qt-ui/profile/divepixmapitem.h b/qt-ui/profile/divepixmapitem.h
new file mode 100644
index 000000000..c520e40a0
--- /dev/null
+++ b/qt-ui/profile/divepixmapitem.h
@@ -0,0 +1,17 @@
+#ifndef DIVEPIXMAPITEM_H
+#define DIVEPIXMAPITEM_H
+
+#include <QObject>
+#include <QGraphicsPixmapItem>
+
+class DivePixmapItem : public QObject, public QGraphicsPixmapItem{
+ Q_OBJECT
+ Q_PROPERTY(qreal opacity WRITE setOpacity READ opacity)
+ Q_PROPERTY(QPointF pos WRITE setPos READ pos)
+ Q_PROPERTY(qreal x WRITE setX READ x)
+ Q_PROPERTY(qreal y WRITE setY READ y)
+public:
+ DivePixmapItem(QObject* parent = 0);
+};
+
+#endif \ No newline at end of file