##// END OF EJS Templates
tablemodelchart moved to test folder
Marek Rosa -
r961:2e9183bac7df
parent child
Show More
@@ -14,7 +14,6 SUBDIRS += \
14 splinechart \
14 splinechart \
15 stackedbarchart \
15 stackedbarchart \
16 stackedbarchartdrilldown \
16 stackedbarchartdrilldown \
17 tablemodelchart \
18 zoomlinechart \
17 zoomlinechart \
19 modeldata
18 modeldata
20
19
1 NO CONTENT: modified file
NO CONTENT: modified file
1 NO CONTENT: modified file
NO CONTENT: modified file
@@ -110,9 +110,15 void XYChartItem::handlePointAdded(int index)
110 QPointF point;
110 QPointF point;
111 if (m_series->model()) {
111 if (m_series->model()) {
112 point = calculateGeometryPoint(index - m_series->mapFirst());
112 point = calculateGeometryPoint(index - m_series->mapFirst());
113 if (index < m_series->mapFirst()) {
114 points.insert(0, point);
115 updateLayout(m_points, points, 0);
116 }
117 else {
113 points.insert(index - m_series->mapFirst(), point);
118 points.insert(index - m_series->mapFirst(), point);
114 updateLayout(m_points, points, index - m_series->mapFirst());
119 updateLayout(m_points, points, index - m_series->mapFirst());
115 }
120 }
121 }
116 else {
122 else {
117 // this checks do not work correctly if model is set
123 // this checks do not work correctly if model is set
118 Q_ASSERT(index<m_series->count());
124 Q_ASSERT(index<m_series->count());
1 NO CONTENT: file renamed from examples/tablemodelchart/customtablemodel.cpp to test/tablemodelchart/customtablemodel.cpp
NO CONTENT: file renamed from examples/tablemodelchart/customtablemodel.cpp to test/tablemodelchart/customtablemodel.cpp
1 NO CONTENT: file renamed from examples/tablemodelchart/customtablemodel.h to test/tablemodelchart/customtablemodel.h
NO CONTENT: file renamed from examples/tablemodelchart/customtablemodel.h to test/tablemodelchart/customtablemodel.h
1 NO CONTENT: file renamed from examples/tablemodelchart/main.cpp to test/tablemodelchart/main.cpp
NO CONTENT: file renamed from examples/tablemodelchart/main.cpp to test/tablemodelchart/main.cpp
@@ -1,11 +1,5
1 #-------------------------------------------------
1 !include( ../test.pri ) {
2 #
2 error( "Couldn't find the test.pri file!" )
3 # Project created by QtCreator 2012-03-08T14:30:24
4 #
5 #-------------------------------------------------
6
7 !include( ../examples.pri ) {
8 error( "Couldn't find the examples.pri file!" )
9 }
3 }
10
4
11 QT += core gui
5 QT += core gui
1 NO CONTENT: file renamed from examples/tablemodelchart/tablewidget.cpp to test/tablemodelchart/tablewidget.cpp
NO CONTENT: file renamed from examples/tablemodelchart/tablewidget.cpp to test/tablemodelchart/tablewidget.cpp
1 NO CONTENT: file renamed from examples/tablemodelchart/tablewidget.h to test/tablemodelchart/tablewidget.h
NO CONTENT: file renamed from examples/tablemodelchart/tablewidget.h to test/tablemodelchart/tablewidget.h
@@ -2,7 +2,8 TEMPLATE = subdirs
2 SUBDIRS += \
2 SUBDIRS += \
3 chartwidgettest \
3 chartwidgettest \
4 wavechart \
4 wavechart \
5 gdpbarchart
5 gdpbarchart \
6 tablechartmodel
6
7
7 !win32:{
8 !win32:{
8 SUBDIRS += auto
9 SUBDIRS += auto
General Comments 0
You need to be logged in to leave comments. Login now