summaryrefslogtreecommitdiffstats
path: root/backend-shared/roundrectitem.h
blob: d3f58782fcecc7f1cc17213c4fa2f3fecdf2a74d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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