diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-12-05 06:28:02 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-12-05 06:28:56 +0200 |
commit | e57ed8602ac02ff86e3c08362ca4fbe23fe05bfb (patch) | |
tree | 8182e15307cf5853255b6d6d9d0c0b017875cc1d /src/datavisualization/data/qsurfacedataproxy.cpp | |
parent | 78d4deb0be21f22d74e3e01315686857ef8edf2e (diff) |
Notifys added to properties
Task-number: QTRD-2671
Change-Id: If95696b01eab836c2b4d5c6a3c19d7da9b255ab3
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/data/qsurfacedataproxy.cpp')
-rw-r--r-- | src/datavisualization/data/qsurfacedataproxy.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/datavisualization/data/qsurfacedataproxy.cpp b/src/datavisualization/data/qsurfacedataproxy.cpp index 678ffd8d..8deab6cc 100644 --- a/src/datavisualization/data/qsurfacedataproxy.cpp +++ b/src/datavisualization/data/qsurfacedataproxy.cpp @@ -137,6 +137,8 @@ void QSurfaceDataProxy::resetArray(QSurfaceDataArray *newArray) dptr()->resetArray(newArray); } emit arrayReset(); + emit rowCountChanged(rowCount()); + emit columnCountChanged(columnCount()); } /*! @@ -181,6 +183,7 @@ int QSurfaceDataProxy::addRow(QSurfaceDataRow *row) { int addIndex = dptr()->addRow(row); emit rowsAdded(addIndex, 1); + emit rowCountChanged(rowCount()); return addIndex; } @@ -194,6 +197,7 @@ int QSurfaceDataProxy::addRows(const QSurfaceDataArray &rows) { int addIndex = dptr()->addRows(rows); emit rowsAdded(addIndex, rows.size()); + emit rowCountChanged(rowCount()); return addIndex; } @@ -206,6 +210,7 @@ void QSurfaceDataProxy::insertRow(int rowIndex, QSurfaceDataRow *row) { dptr()->insertRow(rowIndex, row); emit rowsInserted(rowIndex, 1); + emit rowCountChanged(rowCount()); } /*! @@ -217,6 +222,7 @@ void QSurfaceDataProxy::insertRows(int rowIndex, const QSurfaceDataArray &rows) { dptr()->insertRows(rowIndex, rows); emit rowsInserted(rowIndex, rows.size()); + emit rowCountChanged(rowCount()); } /*! @@ -228,6 +234,7 @@ void QSurfaceDataProxy::removeRows(int rowIndex, int removeCount) if (rowIndex < rowCount() && removeCount >= 1) { dptr()->removeRows(rowIndex, removeCount); emit rowsRemoved(rowIndex, removeCount); + emit rowCountChanged(rowCount()); } } |