@@ -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 |
@@ -49,7 +49,7 private: | |||||
49 | QPointF calculateGeometryControlPoint(int index) const; |
|
49 | QPointF calculateGeometryControlPoint(int index) const; | |
50 |
|
50 | |||
51 | private: |
|
51 | private: | |
52 |
QSplineSeries* |
|
52 | QSplineSeries *m_series; | |
53 | QPainterPath m_path; |
|
53 | QPainterPath m_path; | |
54 | QRectF m_rect; |
|
54 | QRectF m_rect; | |
55 | QPen m_linePen; |
|
55 | QPen m_linePen; |
@@ -380,7 +380,7 void QXYSeries::modelUpdated(QModelIndex topLeft, QModelIndex bottomRight) | |||||
380 | } else { |
|
380 | } else { | |
381 | if (topLeft.column() >= d->m_mapFirst && (!d->m_mapLimited || topLeft.column() < d->m_mapFirst + d->m_mapCount)) |
|
381 | if (topLeft.column() >= d->m_mapFirst && (!d->m_mapLimited || topLeft.column() < d->m_mapFirst + d->m_mapCount)) | |
382 | emit d->pointReplaced(topLeft.column() - d->m_mapFirst); |
|
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 | 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 |
|
|
113 | if (index < m_series->mapFirst()) { | |
114 | updateLayout(m_points, points, 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 | 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 |
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 |
General Comments 0
You need to be logged in to leave comments.
Login now