33 virtual QSizeF getPreferredGraphicsItemSize(
void)
const override;
38 virtual void paintCustomItem(QPainter* _painter,
const QStyleOptionGraphicsItem* _opt, QWidget* _widget,
const QRectF& _rect)
override;
46 void setRectangleSize(
const Size2DD& _size);
47 void setRectangleSize(
const QSizeF& _size);
48 const Size2DD& getRectangleSize(
void)
const;
55 void setOutline(
const OutlineF& _outline);
56 const OutlineF& getOutline(
void)
const;
58 void setCornerRadius(
int _r);
59 int getCornerRadius(
void)
const;
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition CustomGraphicsItem.h:17
The GraphicsItemCfg is the base class for all graphics item configurations.
Definition GraphicsItemCfg.h:33
Definition GraphicsRectangularItem.h:17
The OutlineF class is used to describe how a outline should look like.
Definition Outline.h:161
Definition Painter2D.h:17
2D Size with double values
Definition Size2D.h:115