@@ -429,7 +429,15 void Window::showMenu(QChart* qchart) | |||
|
429 | 429 | if (chosen) { |
|
430 | 430 | Chart* chart = (Chart *) chosen->data().value<void *>(); |
|
431 | 431 | int index = m_chartHash[qchart]; |
|
432 | m_baseLayout->removeItem(qchart); | |
|
432 | //not in 4.7.2 m_baseLayout->removeItem(qchart); | |
|
433 | for(int i = 0 ; i < m_baseLayout->count();++i) | |
|
434 | { | |
|
435 | if(m_baseLayout->itemAt(i)==qchart){ | |
|
436 | m_baseLayout->removeAt(i); | |
|
437 | break; | |
|
438 | } | |
|
439 | } | |
|
440 | ||
|
433 | 441 | m_chartHash.remove(qchart); |
|
434 | 442 | QChart* newChart = chart->createChart(m_dataTable); |
|
435 | 443 | m_baseLayout->addItem(newChart, index / 3, index % 3); |
General Comments 0
You need to be logged in to leave comments.
Login now