diff options
author | Titta Heikkala <titta.heikkala@theqtcompany.com> | 2014-11-12 10:23:01 +0200 |
---|---|---|
committer | Titta Heikkala <titta.heikkala@theqtcompany.com> | 2014-11-12 13:13:16 +0200 |
commit | f78be8da2422a758e0f50d3ca0cced53f44d0f12 (patch) | |
tree | 91dae2e5066bf548817c32f06c26df425a58f82f /src/charts/xychart/xychart.cpp | |
parent | 6c4e7f2cd60f47ef5935ed9f21d19bb94db5f048 (diff) |
Add pressed, released and doubleClicked signals
Added pressed, released and doubleClicked signals for all series. The
signals are also added to QPieSlice and QBoxPlotSet.
Change-Id: If94948be439a3b53ed48c02d0092091e836222a4
Task-number: QTRD-2384
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Diffstat (limited to 'src/charts/xychart/xychart.cpp')
-rw-r--r-- | src/charts/xychart/xychart.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/charts/xychart/xychart.cpp b/src/charts/xychart/xychart.cpp index bd656b0b..d0fd6ebf 100644 --- a/src/charts/xychart/xychart.cpp +++ b/src/charts/xychart/xychart.cpp @@ -43,6 +43,9 @@ XYChart::XYChart(QXYSeries *series, QGraphicsItem *item): QObject::connect(series, SIGNAL(pointRemoved(int)), this, SLOT(handlePointRemoved(int))); QObject::connect(this, SIGNAL(clicked(QPointF)), series, SIGNAL(clicked(QPointF))); QObject::connect(this, SIGNAL(hovered(QPointF,bool)), series, SIGNAL(hovered(QPointF,bool))); + QObject::connect(this, SIGNAL(pressed(QPointF)), series, SIGNAL(pressed(QPointF))); + QObject::connect(this, SIGNAL(released(QPointF)), series, SIGNAL(released(QPointF))); + QObject::connect(this, SIGNAL(doubleClicked(QPointF)), series, SIGNAL(doubleClicked(QPointF))); } void XYChart::setGeometryPoints(const QVector<QPointF> &points) |