summaryrefslogtreecommitdiffstats
path: root/backend-shared/roundrectitem.h
blob: b8cb3f89bded676a2a831119111928a31461f399 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: GPL-2.0
#ifndef ROUNDRECTITEM_H
#define ROUNDRECTITEM_H

#include <QGraphicsRectItem>

class RoundRectItem : public QGraphicsRectItem {
public:
	RoundRectItem(double radius, QGraphicsItem *parent);
	RoundRectItem(double radius);
private:
	void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
	double radius;
};

#endif