From ccda934c8c275423db2380172fb5dfa043eedaba 2012-07-03 10:47:56 From: Marek Rosa Date: 2012-07-03 10:47:56 Subject: [PATCH] chartwidgettest updated --- diff --git a/examples/modeldata/tablewidget.cpp b/examples/modeldata/tablewidget.cpp index 8073e6c..8c309c1 100644 --- a/examples/modeldata/tablewidget.cpp +++ b/examples/modeldata/tablewidget.cpp @@ -94,6 +94,7 @@ TableWidget::TableWidget(QWidget *parent) //! [7] //! [8] + chart->createDefaultAxes(); QChartView *chartView = new QChartView(chart); chartView->setRenderHint(QPainter::Antialiasing); chartView->setMinimumSize(640, 480); diff --git a/tests/chartwidgettest/mainwidget.cpp b/tests/chartwidgettest/mainwidget.cpp index 0fa84b1..c2f5c60 100644 --- a/tests/chartwidgettest/mainwidget.cpp +++ b/tests/chartwidgettest/mainwidget.cpp @@ -315,6 +315,7 @@ void MainWidget::addSeries(QString seriesName, int columnCount, int rowCount, QS m_chart->addSeries(series); } } + m_chart->createDefaultAxes(); } void MainWidget::backgroundChanged(int itemIndex)