10#include <QGraphicsItem>
11#include <QGraphicsScene>
27 for (
int i = 0;
i < m_segments.count();
i++) {
44 m_segments.push_back (item);
49 for (
int i = 0;
i < m_segments.count();
i++) {
51 if (item !=
nullptr) {
54 QGraphicsLineItem *
itemLine =
dynamic_cast<QGraphicsLineItem*
> (item);
55 QGraphicsEllipseItem *
itemArc =
dynamic_cast<QGraphicsEllipseItem*
> (item);
58 }
else if (
itemArc !=
nullptr) {
67 for (
int i = 0;
i < m_segments.count();
i++) {
const int INNER_RADIUS_MIN
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Single grid line drawn a straight or curved line.
void setPen(const QPen &pen)
Set the pen style.
GridLine & operator=(GridLine &other)
Assignment constructor. This will assert if called since copying of pointer containers is problematic...
void add(QGraphicsItem *item)
Add graphics item which represents one segment of the line.
void setVisible(bool visible)
Set each grid line as visible or hidden.
GridLine()
Default constructor for storage in containers.