14#include <QtCore/qline.h>
34 virtual QSizeF getPreferredGraphicsItemSize(
void)
const override;
39 virtual void paintCustomItem(QPainter* _painter,
const QStyleOptionGraphicsItem* _opt, QWidget* _widget,
const QRectF& _rect)
override;
49 void setLine(
const QPointF& _from,
const QPointF& _to);
50 void setLine(
const QLineF& _line);
53 QLineF getLine(
void)
const;
55 void setLineStyle(
const OutlineF& _style);
56 const OutlineF& getLineStyle(
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 GraphicsLineItem.h:18
void setLine(qreal _x1, qreal _y1, qreal _x2, qreal _y2)
Definition GraphicsLineItem.h:47
The OutlineF class is used to describe how a outline should look like.
Definition Outline.h:161
2D Point with double values
Definition Point2D.h:144