diff options
Diffstat (limited to 'backend-shared')
-rw-r--r-- | backend-shared/roundrectitem.cpp | 4 | ||||
-rw-r--r-- | backend-shared/roundrectitem.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/backend-shared/roundrectitem.cpp b/backend-shared/roundrectitem.cpp index 2dbfd7b03..52200b017 100644 --- a/backend-shared/roundrectitem.cpp +++ b/backend-shared/roundrectitem.cpp @@ -7,6 +7,10 @@ RoundRectItem::RoundRectItem(double radius, QGraphicsItem *parent) : QGraphicsRe { } +RoundRectItem::RoundRectItem(double radius) : RoundRectItem(radius, nullptr) +{ +} + void RoundRectItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *) { painter->save(); diff --git a/backend-shared/roundrectitem.h b/backend-shared/roundrectitem.h index d3f58782f..b8cb3f89b 100644 --- a/backend-shared/roundrectitem.h +++ b/backend-shared/roundrectitem.h @@ -7,6 +7,7 @@ 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; |