From d84649cce52501dd16485826867aedf99694e279 2012-04-12 12:24:55 From: sauimone Date: 2012-04-12 12:24:55 Subject: [PATCH] barset: selected is now private signal --- diff --git a/src/barchart/qbarset.cpp b/src/barchart/qbarset.cpp index 48ad461..78d5103 100644 --- a/src/barchart/qbarset.cpp +++ b/src/barchart/qbarset.cpp @@ -291,13 +291,12 @@ QBarSetPrivate::QBarSetPrivate(const QString name, QBarSet *parent) : QObject(pa m_name(name), m_labelsVisible(false) { - } QBarSetPrivate::~QBarSetPrivate() { - } + #include "moc_qbarset.cpp" #include "moc_qbarset_p.cpp" diff --git a/src/barchart/qbarset_p.h b/src/barchart/qbarset_p.h index ac738b8..6e79e89 100644 --- a/src/barchart/qbarset_p.h +++ b/src/barchart/qbarset_p.h @@ -16,6 +16,7 @@ public: Q_SIGNALS: void clicked(QString category); + void selected(); void restructuredBars(); void updatedBars(); void labelsVisibleChanged(bool visible); diff --git a/src/legend/legendmarker.cpp b/src/legend/legendmarker.cpp index b3ae7f1..fd884b7 100644 --- a/src/legend/legendmarker.cpp +++ b/src/legend/legendmarker.cpp @@ -138,7 +138,7 @@ void AreaLegendMarker::updated() BarLegendMarker::BarLegendMarker(QBarSeries *barseries,QBarSet *barset, QLegend *legend) : LegendMarker(barseries,legend), m_barset(barset) { - QObject::connect(this, SIGNAL(selected()),barseries, SIGNAL(selected())); + QObject::connect(this, SIGNAL(selected()),barset->d_ptr.data(), SIGNAL(selected())); QObject::connect(barset->d_ptr.data(), SIGNAL(updatedBars()), this, SLOT(updated())); updated(); }