From 921979357fc9f565ddb2545a351717db530ae738 2012-04-02 13:26:14 From: Tero Ahola Date: 2012-04-02 13:26:14 Subject: [PATCH] Removed resize hack from chartwidgettest theme change --- 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); }