summaryrefslogtreecommitdiffstats
path: root/src/charts/legend
diff options
context:
space:
mode:
Diffstat (limited to 'src/charts/legend')
-rw-r--r--src/charts/legend/legendmarkeritem.cpp2
-rw-r--r--src/charts/legend/qlegend.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/charts/legend/legendmarkeritem.cpp b/src/charts/legend/legendmarkeritem.cpp
index c9b2b817..eda5df19 100644
--- a/src/charts/legend/legendmarkeritem.cpp
+++ b/src/charts/legend/legendmarkeritem.cpp
@@ -147,7 +147,7 @@ QFont LegendMarkerItem::font() const
void LegendMarkerItem::setLabel(const QString label)
{
m_label = label;
- updateGeometry();
+ m_marker->invalidateLegend();
}
QString LegendMarkerItem::label() const
diff --git a/src/charts/legend/qlegend.cpp b/src/charts/legend/qlegend.cpp
index 49766c6f..9e2778e9 100644
--- a/src/charts/legend/qlegend.cpp
+++ b/src/charts/legend/qlegend.cpp
@@ -236,8 +236,8 @@ QT_BEGIN_NAMESPACE
*/
/*!
- \fn void QLegend::attachedToChartChanged(bool)
- This signal is emitted when the legend is attached to or detached from the legend.
+ \fn void QLegend::attachedToChartChanged(bool attached)
+ This signal is emitted when the legend is \a attached to or detached from the chart.
\since 6.2
*/