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