diff --git a/test/chartwidgettest/mainwidget.cpp b/test/chartwidgettest/mainwidget.cpp index 518b514..5ea101f 100644 --- a/test/chartwidgettest/mainwidget.cpp +++ b/test/chartwidgettest/mainwidget.cpp @@ -322,8 +322,4 @@ void MainWidget::changeChartTheme(int themeIndex) { qDebug() << "changeChartTheme: " << themeIndex; m_chart->setTheme((QChart::ChartTheme) themeIndex); - //TODO: remove this hack. This is just to make it so that theme change is seen immediately. - QSize s = size(); - s.setWidth(s.width()+1); - resize(s); }