##// END OF EJS Templates
Compiltion fix for 4.7.2
Michal Klocek -
r1853:d57474518199
parent child
Show More
@@ -429,7 +429,15 void Window::showMenu(QChart* qchart)
429 if (chosen) {
429 if (chosen) {
430 Chart* chart = (Chart *) chosen->data().value<void *>();
430 Chart* chart = (Chart *) chosen->data().value<void *>();
431 int index = m_chartHash[qchart];
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 m_chartHash.remove(qchart);
441 m_chartHash.remove(qchart);
434 QChart* newChart = chart->createChart(m_dataTable);
442 QChart* newChart = chart->createChart(m_dataTable);
435 m_baseLayout->addItem(newChart, index / 3, index % 3);
443 m_baseLayout->addItem(newChart, index / 3, index % 3);
General Comments 0
You need to be logged in to leave comments. Login now