@@ -92,7 +92,7 void VisualizationCursorItem::setVisible(bool value) | |||||
92 | if (value != isVisible()) { |
|
92 | if (value != isVisible()) { | |
93 |
|
93 | |||
94 | if (value) { |
|
94 | if (value) { | |
95 |
Q_ASSERT(!impl->m_LineItem && !impl->m_ |
|
95 | Q_ASSERT(!impl->m_LineItem && !impl->m_LabelItem); | |
96 |
|
96 | |||
97 | impl->m_LineItem = new QCPItemStraightLine{impl->m_Plot}; |
|
97 | impl->m_LineItem = new QCPItemStraightLine{impl->m_Plot}; | |
98 | auto pen = QPen{CURSOR_PEN_STYLE}; |
|
98 | auto pen = QPen{CURSOR_PEN_STYLE}; | |
@@ -118,7 +118,7 void VisualizationCursorItem::setVisible(bool value) | |||||
118 | impl->updateCursorPosition(); |
|
118 | impl->updateCursorPosition(); | |
119 | } |
|
119 | } | |
120 | else { |
|
120 | else { | |
121 |
Q_ASSERT(impl->m_LineItem && impl->m_ |
|
121 | Q_ASSERT(impl->m_LineItem && impl->m_LabelItem); | |
122 |
|
122 | |||
123 | // Note: the items are destroyed by QCustomPlot in removeItem |
|
123 | // Note: the items are destroyed by QCustomPlot in removeItem | |
124 | impl->m_Plot->removeItem(impl->m_LineItem); |
|
124 | impl->m_Plot->removeItem(impl->m_LineItem); |
General Comments 0
You need to be logged in to leave comments.
Login now