@@ -14,7 +14,6 SUBDIRS += \ | |||
|
14 | 14 | splinechart \ |
|
15 | 15 | stackedbarchart \ |
|
16 | 16 | stackedbarchartdrilldown \ |
|
17 | tablemodelchart \ | |
|
18 | 17 | zoomlinechart \ |
|
19 | 18 | modeldata |
|
20 | 19 |
@@ -49,7 +49,7 private: | |||
|
49 | 49 | QPointF calculateGeometryControlPoint(int index) const; |
|
50 | 50 | |
|
51 | 51 | private: |
|
52 |
QSplineSeries* |
|
|
52 | QSplineSeries *m_series; | |
|
53 | 53 | QPainterPath m_path; |
|
54 | 54 | QRectF m_rect; |
|
55 | 55 | QPen m_linePen; |
@@ -380,7 +380,7 void QXYSeries::modelUpdated(QModelIndex topLeft, QModelIndex bottomRight) | |||
|
380 | 380 | } else { |
|
381 | 381 | if (topLeft.column() >= d->m_mapFirst && (!d->m_mapLimited || topLeft.column() < d->m_mapFirst + d->m_mapCount)) |
|
382 | 382 | emit d->pointReplaced(topLeft.column() - d->m_mapFirst); |
|
383 | } | |
|
383 | } | |
|
384 | 384 | } |
|
385 | 385 | |
|
386 | 386 | /*! |
@@ -110,8 +110,14 void XYChartItem::handlePointAdded(int index) | |||
|
110 | 110 | QPointF point; |
|
111 | 111 | if (m_series->model()) { |
|
112 | 112 | point = calculateGeometryPoint(index - m_series->mapFirst()); |
|
113 |
|
|
|
114 | updateLayout(m_points, points, index - m_series->mapFirst()); | |
|
113 | if (index < m_series->mapFirst()) { | |
|
114 | points.insert(0, point); | |
|
115 | updateLayout(m_points, points, 0); | |
|
116 | } | |
|
117 | else { | |
|
118 | points.insert(index - m_series->mapFirst(), point); | |
|
119 | updateLayout(m_points, points, index - m_series->mapFirst()); | |
|
120 | } | |
|
115 | 121 | } |
|
116 | 122 | else { |
|
117 | 123 | // this checks do not work correctly if model is set |
|
1 | 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 |
|
1 | NO CONTENT: file renamed from examples/tablemodelchart/main.cpp to test/tablemodelchart/main.cpp |
@@ -1,11 +1,5 | |||
|
1 | #------------------------------------------------- | |
|
2 | # | |
|
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!" ) | |
|
1 | !include( ../test.pri ) { | |
|
2 | error( "Couldn't find the test.pri file!" ) | |
|
9 | 3 | } |
|
10 | 4 | |
|
11 | 5 | QT += core gui |
|
1 | 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 |
General Comments 0
You need to be logged in to leave comments.
Login now