summaryrefslogtreecommitdiffstats
path: root/backend-shared/roundrectitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend-shared/roundrectitem.h')
-rw-r--r--backend-shared/roundrectitem.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/backend-shared/roundrectitem.h b/backend-shared/roundrectitem.h
new file mode 100644
index 000000000..d3f58782f
--- /dev/null
+++ b/backend-shared/roundrectitem.h
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0
+#ifndef ROUNDRECTITEM_H
+#define ROUNDRECTITEM_H
+
+#include <QGraphicsRectItem>
+
+class RoundRectItem : public QGraphicsRectItem {
+public:
+ RoundRectItem(double radius, QGraphicsItem *parent);
+private:
+ void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
+ double radius;
+};
+
+#endif