summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlegend/tst_qlegend.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2013-04-16 10:07:13 +0300
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2013-04-17 10:14:43 +0300
commitf494279b6366b06e3eeeb4f8c006ce76b08f10d7 (patch)
tree26951efa14e26eb0791d13ea32624e9afcf48851 /tests/auto/qlegend/tst_qlegend.cpp
parent56fd46a395765db6818f890676e42cc59a9f4a81 (diff)
Add Polar chart support
This commit also heavily refactors things as polar chart needs separate implementation of various classes that previously only needed one, such as ChartAxis and ChartLayout. Task-number: QTRD-1757 Change-Id: I3d3db23920314987ceef3ae92879960b833b7136 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'tests/auto/qlegend/tst_qlegend.cpp')
-rw-r--r--tests/auto/qlegend/tst_qlegend.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/tests/auto/qlegend/tst_qlegend.cpp b/tests/auto/qlegend/tst_qlegend.cpp
index 5eb6e245..de493565 100644
--- a/tests/auto/qlegend/tst_qlegend.cpp
+++ b/tests/auto/qlegend/tst_qlegend.cpp
@@ -63,7 +63,6 @@ private slots:
private:
QChart *m_chart;
-
};
void tst_QLegend::initTestCase()
@@ -76,7 +75,7 @@ void tst_QLegend::cleanupTestCase()
void tst_QLegend::init()
{
- m_chart = new QChart();
+ m_chart = newQChartOrQPolarChart();
}
void tst_QLegend::cleanup()
@@ -98,6 +97,8 @@ void tst_QLegend::qlegend()
void tst_QLegend::qpieLegendMarker()
{
+ SKIP_ON_POLAR();
+
QVERIFY(m_chart);
QLegend *legend = m_chart->legend();
@@ -190,6 +191,8 @@ void tst_QLegend::qxyLegendMarker()
void tst_QLegend::qbarLegendMarker()
{
+ SKIP_ON_POLAR();
+
QVERIFY(m_chart);
QLegend *legend = m_chart->legend();
@@ -230,6 +233,8 @@ void tst_QLegend::qbarLegendMarker()
void tst_QLegend::markers()
{
+ SKIP_ON_POLAR();
+
QVERIFY(m_chart);
QLegend *legend = m_chart->legend();
@@ -270,6 +275,8 @@ void tst_QLegend::markers()
void tst_QLegend::addAndRemoveSeries()
{
+ SKIP_ON_POLAR();
+
QVERIFY(m_chart);
QLegend *legend = m_chart->legend();
@@ -291,6 +298,8 @@ void tst_QLegend::addAndRemoveSeries()
void tst_QLegend::pieMarkerProperties()
{
+ SKIP_ON_POLAR();
+
QVERIFY(m_chart);
QLegend *legend = m_chart->legend();
@@ -327,6 +336,8 @@ void tst_QLegend::pieMarkerProperties()
void tst_QLegend::barMarkerProperties()
{
+ SKIP_ON_POLAR();
+
QVERIFY(m_chart);
QLegend *legend = m_chart->legend();
@@ -482,8 +493,10 @@ void tst_QLegend::xyMarkerPropertiesScatter()
void tst_QLegend::markerSignals()
{
+ SKIP_ON_POLAR();
+
SKIP_IF_CANNOT_TEST_MOUSE_EVENTS();
- QChart *chart = new QChart();
+ QChart *chart = newQChartOrQPolarChart();
QLegend *legend = chart->legend();
QBarSeries *bar = new QBarSeries();