##// END OF EJS Templates
Fix checking for labels out of axis grid....
Fix checking for labels out of axis grid. Change-Id: Ib55312f9e7cb58e6d1f47912d54f3bf56b8871cc Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>

File last commit:

r2433:4d17a12f375e
r2570:ac7068d4fd37
Show More
tst_qlineseries.cpp
102 lines | 2.2 KiB | text/x-c | CppLexer
Michal Klocek
Update of tst_qlineseries.cpp
r1064 /****************************************************************************
**
Miikka Heikkinen
More copyright year changes
r2433 ** Copyright (C) 2013 Digia Plc
Michal Klocek
Update of tst_qlineseries.cpp
r1064 ** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the Qt Commercial Charts Add-on.
**
** $QT_BEGIN_LICENSE$
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
** $QT_END_LICENSE$
**
****************************************************************************/
Michal Klocek
Adds spline scatter unit tests
r1266 #include "../qxyseries/tst_qxyseries.h"
Michal Klocek
Add tst_qlineseries stub
r1058 #include <qlineseries.h>
Michal Klocek
Update of tst_qlineseries.cpp
r1064
Michal Klocek
Add tst_qlineseries stub
r1058
Michal Klocek
Adds spline scatter unit tests
r1266 Q_DECLARE_METATYPE(QList<QPointF>)
Michal Klocek
Add tst_qlineseries stub
r1058
Michal Klocek
Adds spline scatter unit tests
r1266 class tst_QLineSeries : public tst_QXYSeries
Michal Klocek
Add tst_qlineseries stub
r1058 {
Q_OBJECT
Michal Klocek
Adds spline scatter unit tests
r1266 public slots:
Michal Klocek
Add tst_qlineseries stub
r1058 void initTestCase();
void cleanupTestCase();
void init();
void cleanup();
Michal Klocek
Adds spline scatter unit tests
r1266 private slots:
Michal Klocek
Update of tst_qlineseries.cpp
r1064 void qlineseries_data();
void qlineseries();
Michal Klocek
Adds spline scatter unit tests
r1266 protected:
Michal Klocek
Adds default 0,1 domain for emmpty series, update tst_qlineseries
r1070 void pointsVisible_data();
Michal Klocek
Add tst_qlineseries stub
r1058 };
void tst_QLineSeries::initTestCase()
{
}
void tst_QLineSeries::cleanupTestCase()
{
}
void tst_QLineSeries::init()
{
Michal Klocek
Adds spline scatter unit tests
r1266 tst_QXYSeries::init();
Marek Rosa
Spline series now recalcutes control points on adding/removing data to/from model
r1072 m_series = new QLineSeries();
Michal Klocek
Add tst_qlineseries stub
r1058 }
void tst_QLineSeries::cleanup()
{
Michal Klocek
Adds default 0,1 domain for emmpty series, update tst_qlineseries
r1070 delete m_series;
Michal Klocek
Adds tst_qvaluesaxis stub implementation
r1699 m_series=0;
Michal Klocek
Adds spline scatter unit tests
r1266 tst_QXYSeries::cleanup();
Michal Klocek
Add tst_qlineseries stub
r1058 }
Michal Klocek
Update of tst_qlineseries.cpp
r1064 void tst_QLineSeries::qlineseries_data()
Michal Klocek
Add tst_qlineseries stub
r1058 {
Michal Klocek
Adds default 0,1 domain for emmpty series, update tst_qlineseries
r1070
Michal Klocek
Add tst_qlineseries stub
r1058 }
Michal Klocek
Update of tst_qlineseries.cpp
r1064 void tst_QLineSeries::qlineseries()
Michal Klocek
Add tst_qlineseries stub
r1058 {
Marek Rosa
Fixed some of the tests after Model mapping refactoring
r1178 QLineSeries series;
Michal Klocek
Update of tst_qlineseries.cpp
r1064
Marek Rosa
Fixed some of the tests after Model mapping refactoring
r1178 QCOMPARE(series.count(),0);
QCOMPARE(series.brush(), QBrush());
QCOMPARE(series.points(), QList<QPointF>());
QCOMPARE(series.pen(), QPen());
QCOMPARE(series.pointsVisible(), false);
Michal Klocek
Update of tst_qlineseries.cpp
r1064
Marek Rosa
Fixed some of the tests after Model mapping refactoring
r1178 series.append(QList<QPointF>());
series.append(0.0,0.0);
series.append(QPointF());
Michal Klocek
Update of tst_qlineseries.cpp
r1064
Marek Rosa
Fixed some of the tests after Model mapping refactoring
r1178 series.remove(0.0,0.0);
series.remove(QPointF());
Jani Honkonen
xyseries: removeAll() was duplicate of clear()
r1374 series.clear();
Michal Klocek
Update of tst_qlineseries.cpp
r1064
Marek Rosa
Fixed some of the tests after Model mapping refactoring
r1178 series.replace(QPointF(),QPointF());
series.replace(0,0,0,0);
series.setBrush(QBrush());
Michal Klocek
Update of tst_qlineseries.cpp
r1064
Marek Rosa
Fixed some of the tests after Model mapping refactoring
r1178 series.setPen(QPen());
series.setPointsVisible(false);
Michal Klocek
Adds default 0,1 domain for emmpty series, update tst_qlineseries
r1070
Marek Rosa
Fixed some of the tests after Model mapping refactoring
r1178 m_chart->addSeries(&series);
m_view->show();
QTest::qWaitForWindowShown(m_view);
Michal Klocek
Add tst_qlineseries stub
r1058 }
QTEST_MAIN(tst_QLineSeries)
#include "tst_qlineseries.moc"