From f1ed2c00f28cefd169740d87ba59029849c67636 2012-07-13 09:46:49 From: Michal Klocek Date: 2012-07-13 09:46:49 Subject: [PATCH] Fix tst_chartdataset --- diff --git a/tests/auto/chartdataset/tst_chartdataset.cpp b/tests/auto/chartdataset/tst_chartdataset.cpp index 5a4a367..eed180c 100644 --- a/tests/auto/chartdataset/tst_chartdataset.cpp +++ b/tests/auto/chartdataset/tst_chartdataset.cpp @@ -231,7 +231,7 @@ void tst_ChartDataSet::setAxisX() QSignalSpy spy7(m_dataset, SIGNAL(seriesRemoved(QAbstractSeries *))); for(int i=0 ; i < seriesList.count(); i++){ - m_dataset->setAxisX(seriesList.at(i),axisList.at(i)); + m_dataset->setAxis(seriesList.at(i),axisList.at(i),Qt::Horizontal); } TRY_COMPARE(spy4.count(), axisCount); @@ -277,7 +277,7 @@ void tst_ChartDataSet::setAxisY() QSignalSpy spy7(m_dataset, SIGNAL(seriesRemoved(QAbstractSeries *))); for(int i=0 ; i < seriesList.count(); i++){ - m_dataset->setAxisY(seriesList.at(i),axisList.at(i)); + m_dataset->setAxis(seriesList.at(i),axisList.at(i),Qt::Vertical); } TRY_COMPARE(spy4.count(), axisCount); @@ -345,7 +345,7 @@ void tst_ChartDataSet::removeAllSeries() } for (int i = 0; i < seriesList.count(); i++) { - m_dataset->setAxisX(seriesList.at(i), axisList.at(i)); + m_dataset->setAxis(seriesList.at(i), axisList.at(i),Qt::Horizontal); } QSignalSpy spy0(m_dataset, SIGNAL(axisAdded(QAbstractAxis *, Domain *)));