summaryrefslogtreecommitdiffstats
path: root/src/charts/legend/legendmarkeritem_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/charts/legend/legendmarkeritem_p.h')
-rw-r--r--src/charts/legend/legendmarkeritem_p.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/charts/legend/legendmarkeritem_p.h b/src/charts/legend/legendmarkeritem_p.h
index 870cfb2e..c3371742 100644
--- a/src/charts/legend/legendmarkeritem_p.h
+++ b/src/charts/legend/legendmarkeritem_p.h
@@ -56,7 +56,7 @@ class LegendMarkerItem : public QGraphicsObject, public QGraphicsLayoutItem
Q_OBJECT
Q_INTERFACES(QGraphicsLayoutItem)
public:
- explicit LegendMarkerItem(QLegendMarkerPrivate *marker, QGraphicsObject *parent = 0);
+ explicit LegendMarkerItem(QLegendMarkerPrivate *marker, QGraphicsObject *parent = nullptr);
~LegendMarkerItem();
void setPen(const QPen &pen);
@@ -76,8 +76,9 @@ public:
void setGeometry(const QRectF &rect);
QRectF boundingRect() const;
+ QRectF markerRect() const;
- void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
+ void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,QWidget *widget = nullptr);
QSizeF sizeHint (Qt::SizeHint which, const QSizeF &constraint) const;
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
@@ -85,6 +86,10 @@ public:
QString displayedLabel() const;
void setToolTip(const QString &tooltip);
+
+Q_SIGNALS:
+ void markerRectChanged();
+
protected:
QLegendMarkerPrivate *m_marker; // Knows
QRectF m_markerRect;