@@ -109,7 +109,6 void PieSliceItem::hoverLeaveEvent(QGraphicsSceneHoverEvent * /*event*/) | |||||
109 | void PieSliceItem::mousePressEvent(QGraphicsSceneMouseEvent *event) |
|
109 | void PieSliceItem::mousePressEvent(QGraphicsSceneMouseEvent *event) | |
110 | { |
|
110 | { | |
111 | emit clicked(event->buttons()); |
|
111 | emit clicked(event->buttons()); | |
112 | QGraphicsItem::mousePressEvent(event); |
|
|||
113 | } |
|
112 | } | |
114 |
|
113 | |||
115 | void PieSliceItem::setLayout(const PieSliceData &sliceData) |
|
114 | void PieSliceItem::setLayout(const PieSliceData &sliceData) |
@@ -844,9 +844,11 void QPieSeriesPrivate::sliceClicked() | |||||
844 | void QPieSeriesPrivate::sliceHovered(bool state) |
|
844 | void QPieSeriesPrivate::sliceHovered(bool state) | |
845 | { |
|
845 | { | |
846 | QPieSlice *slice = qobject_cast<QPieSlice *>(sender()); |
|
846 | QPieSlice *slice = qobject_cast<QPieSlice *>(sender()); | |
847 | Q_ASSERT(m_slices.contains(slice)); |
|
847 | if (!m_slices.isEmpty()) { | |
848 | Q_Q(QPieSeries); |
|
848 | Q_ASSERT(m_slices.contains(slice)); | |
849 | emit q->hovered(slice, state); |
|
849 | Q_Q(QPieSeries); | |
|
850 | emit q->hovered(slice, state); | |||
|
851 | } | |||
850 | } |
|
852 | } | |
851 |
|
853 | |||
852 | void QPieSeriesPrivate::initializeDomain() |
|
854 | void QPieSeriesPrivate::initializeDomain() |
General Comments 0
You need to be logged in to leave comments.
Login now