21 #ifndef __ctkCrosshairLabel_h 22 #define __ctkCrosshairLabel_h 31 #include "ctkWidgetsExport.h" 33 class ctkCrosshairLabelPrivate;
47 Q_PROPERTY(
bool showCrosshair READ showCrosshair WRITE setShowCrosshair)
50 Q_PROPERTY(QPen crosshairPen READ crosshairPen WRITE setCrosshairPen
52 Q_PROPERTY(QColor crosshairColor READ crosshairColor WRITE setCrosshairColor)
53 Q_PROPERTY(
int lineWidth READ lineWidth WRITE setLineWidth)
54 Q_PROPERTY(CrosshairTypes crosshairType READ crosshairType WRITE setCrosshairType)
55 Q_PROPERTY(QColor marginColor READ marginColor WRITE setMarginColor)
56 Q_PROPERTY(
int bullsEyeWidth READ bullsEyeWidth WRITE setBullsEyeWidth)
72 bool showCrosshair()
const;
73 void setShowCrosshair(
bool newShow);
80 QPen crosshairPen()
const;
81 void setCrosshairPen(
const QPen& newPen);
85 QColor crosshairColor()
const;
86 void setCrosshairColor(
const QColor& newColor);
92 int lineWidth()
const;
93 void setLineWidth(
int newWidth);
96 CrosshairTypes crosshairType()
const;
97 void setCrosshairType(
const CrosshairTypes& newType);
103 QColor marginColor()
const;
104 void setMarginColor(
const QColor& newColor);
111 int bullsEyeWidth()
const;
112 void setBullsEyeWidth(
int newWidth);
115 virtual QSize minimumSizeHint()
const;
116 virtual QSize sizeHint()
const;
117 virtual bool hasHeightForWidth()
const;
118 virtual int heightForWidth(
int width)
const;
121 QScopedPointer<ctkCrosshairLabelPrivate>
d_ptr;
124 virtual void paintEvent(QPaintEvent * event);
QScopedPointer< ctkCrosshairLabelPrivate > d_ptr
CrosshairType
Enumeration over types of crosshairs.
QLabel Superclass
Constructors.