aboutsummaryrefslogtreecommitdiff
path: root/glyph.h
diff options
context:
space:
mode:
Diffstat (limited to 'glyph.h')
-rw-r--r--glyph.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/glyph.h b/glyph.h
deleted file mode 100644
index 7532d04..0000000
--- a/glyph.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef GLYPH_H
-#define GLYPH_H
-
-#include <QColor>
-#include <QtQuick/QQuickItem>
-
-class Glyph : public QQuickItem
-{
- Q_OBJECT
- Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
- Q_PROPERTY(qreal size READ size WRITE setSize NOTIFY sizeChanged)
-
-public:
- enum GlyphType {
- GLYPH_CIRCLE,
- GLYPH_SQUARE,
- GLYPH_STAR,
- GLYPH_CROSS
- };
-
- Glyph(QQuickItem *parent = 0);
-
- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *);
-
- QColor color() const { return m_color; }
- void setColor(const QColor &color);
-
- qreal size() const { return m_size; }
- void setSize(qreal size);
-
-signals:
- void colorChanged();
- void sizeChanged();
-
-public slots:
-
-private:
- QColor m_color;
- qreal m_size;
-};
-
-#endif // GLYPH_H