##// END OF EJS Templates
Removed resize hack from chartwidgettest theme change
Tero Ahola -
r824:921979357fc9
parent child
Show More
@@ -322,8 +322,4 void MainWidget::changeChartTheme(int themeIndex)
322 {
322 {
323 qDebug() << "changeChartTheme: " << themeIndex;
323 qDebug() << "changeChartTheme: " << themeIndex;
324 m_chart->setTheme((QChart::ChartTheme) themeIndex);
324 m_chart->setTheme((QChart::ChartTheme) themeIndex);
325 //TODO: remove this hack. This is just to make it so that theme change is seen immediately.
326 QSize s = size();
327 s.setWidth(s.width()+1);
328 resize(s);
329 }
325 }
General Comments 0
You need to be logged in to leave comments. Login now