##// END OF EJS Templates
fixed changed singal name in legend
sauimone -
r670:27d565e40e33
parent child
Show More
@@ -338,7 +338,7 void QLegend::appendMarkers(QBarSeries *series)
338 marker->setName(s->name());
338 marker->setName(s->name());
339 marker->setBrush(s->brush());
339 marker->setBrush(s->brush());
340 connect(marker,SIGNAL(clicked(QBarSet*,Qt::MouseButton)),this,SIGNAL(clicked(QBarSet*,Qt::MouseButton)));
340 connect(marker,SIGNAL(clicked(QBarSet*,Qt::MouseButton)),this,SIGNAL(clicked(QBarSet*,Qt::MouseButton)));
341 connect(s,SIGNAL(changed()),marker,SLOT(changed()));
341 connect(s,SIGNAL(valueChanged()),marker,SLOT(changed()));
342 connect(marker,SIGNAL(destroyed()),this,SLOT(handleMarkerDestroyed()));
342 connect(marker,SIGNAL(destroyed()),this,SLOT(handleMarkerDestroyed()));
343 mMarkers.append(marker);
343 mMarkers.append(marker);
344 childItems().append(marker);
344 childItems().append(marker);
@@ -396,7 +396,7 void QLegend::layoutChanged()
396
396
397 if (mMarkers.count() > maxHorizontalItems * maxVerticalItems) {
397 if (mMarkers.count() > maxHorizontalItems * maxVerticalItems) {
398 // TODO: overlapping layout
398 // TODO: overlapping layout
399 qDebug() << "Warning. Not enough space to layout all legend items properly.";
399 //qDebug() << "Warning. Not enough space to layout all legend items properly.";
400 }
400 }
401
401
402 qreal margin = 5;
402 qreal margin = 5;
General Comments 0
You need to be logged in to leave comments. Login now