##// END OF EJS Templates
fixed bug in series deletion
sauimone -
r1562:39ec6fd44b31
parent child
Show More
@@ -36,21 +36,21 void Bar::mousePressEvent(QGraphicsSceneMouseEvent *event)
36 {
36 {
37 Q_UNUSED(event)
37 Q_UNUSED(event)
38 emit clicked(m_barset, m_index);
38 emit clicked(m_barset, m_index);
39 //TODO:: emit clicked(m_index);
39 emit clicked(m_index);
40 }
40 }
41
41
42 void Bar::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
42 void Bar::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
43 {
43 {
44 Q_UNUSED(event)
44 Q_UNUSED(event)
45 emit hovered(m_barset, true);
45 emit hovered(m_barset, true);
46 //TODO::emit hovered(true);
46 emit hovered(true);
47 }
47 }
48
48
49 void Bar::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
49 void Bar::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
50 {
50 {
51 Q_UNUSED(event)
51 Q_UNUSED(event)
52 emit hovered(m_barset, false);
52 emit hovered(m_barset, false);
53 //TODO::emit hovered(false);
53 emit hovered(false);
54 }
54 }
55
55
56 #include "moc_bar_p.cpp"
56 #include "moc_bar_p.cpp"
@@ -103,7 +103,7 void ChartPresenter::handleAxisRemoved(QAbstractAxis* axis)
103 ChartAxis* item = m_axisItems.take(axis);
103 ChartAxis* item = m_axisItems.take(axis);
104 Q_ASSERT(item);
104 Q_ASSERT(item);
105 if(m_animator) m_animator->removeAnimation(item);
105 if(m_animator) m_animator->removeAnimation(item);
106 delete item;
106 item->deleteLater();
107 }
107 }
108
108
109
109
@@ -135,7 +135,7 void ChartPresenter::handleSeriesRemoved(QAbstractSeries* series)
135 }else
135 }else
136 m_animator->removeAnimation(item);
136 m_animator->removeAnimation(item);
137 }
137 }
138 delete item;
138 item->deleteLater();
139 }
139 }
140
140
141 void ChartPresenter::setTheme(QChart::ChartTheme theme,bool force)
141 void ChartPresenter::setTheme(QChart::ChartTheme theme,bool force)
General Comments 0
You need to be logged in to leave comments. Login now