##// END OF EJS Templates
barset: selected is now private signal
sauimone -
r1017:d84649cce525
parent child
Show More
@@ -291,13 +291,12 QBarSetPrivate::QBarSetPrivate(const QString name, QBarSet *parent) : QObject(pa
291 291 m_name(name),
292 292 m_labelsVisible(false)
293 293 {
294
295 294 }
296 295
297 296 QBarSetPrivate::~QBarSetPrivate()
298 297 {
299
300 298 }
299
301 300 #include "moc_qbarset.cpp"
302 301 #include "moc_qbarset_p.cpp"
303 302
@@ -16,6 +16,7 public:
16 16
17 17 Q_SIGNALS:
18 18 void clicked(QString category);
19 void selected();
19 20 void restructuredBars();
20 21 void updatedBars();
21 22 void labelsVisibleChanged(bool visible);
@@ -138,7 +138,7 void AreaLegendMarker::updated()
138 138 BarLegendMarker::BarLegendMarker(QBarSeries *barseries,QBarSet *barset, QLegend *legend) : LegendMarker(barseries,legend),
139 139 m_barset(barset)
140 140 {
141 QObject::connect(this, SIGNAL(selected()),barseries, SIGNAL(selected()));
141 QObject::connect(this, SIGNAL(selected()),barset->d_ptr.data(), SIGNAL(selected()));
142 142 QObject::connect(barset->d_ptr.data(), SIGNAL(updatedBars()), this, SLOT(updated()));
143 143 updated();
144 144 }
General Comments 0
You need to be logged in to leave comments. Login now