summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/data/qbardataproxy.cpp
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-12-05 06:28:02 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-12-05 06:28:56 +0200
commite57ed8602ac02ff86e3c08362ca4fbe23fe05bfb (patch)
tree8182e15307cf5853255b6d6d9d0c0b017875cc1d /src/datavisualization/data/qbardataproxy.cpp
parent78d4deb0be21f22d74e3e01315686857ef8edf2e (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/qbardataproxy.cpp')
-rw-r--r--src/datavisualization/data/qbardataproxy.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/datavisualization/data/qbardataproxy.cpp b/src/datavisualization/data/qbardataproxy.cpp
index 2529eeac..80768059 100644
--- a/src/datavisualization/data/qbardataproxy.cpp
+++ b/src/datavisualization/data/qbardataproxy.cpp
@@ -129,6 +129,7 @@ QBar3DSeries *QBarDataProxy::series()
void QBarDataProxy::resetArray()
{
resetArray(0, QStringList(), QStringList());
+ emit rowCountChanged(rowCount());
}
/*!
@@ -142,6 +143,7 @@ void QBarDataProxy::resetArray(QBarDataArray *newArray)
{
dptr()->resetArray(newArray, 0, 0);
emit arrayReset();
+ emit rowCountChanged(rowCount());
}
/*!
@@ -156,6 +158,7 @@ void QBarDataProxy::resetArray(QBarDataArray *newArray, const QStringList &rowLa
{
dptr()->resetArray(newArray, &rowLabels, &columnLabels);
emit arrayReset();
+ emit rowCountChanged(rowCount());
}
/*!
@@ -221,6 +224,7 @@ int QBarDataProxy::addRow(QBarDataRow *row)
{
int addIndex = dptr()->addRow(row, 0);
emit rowsAdded(addIndex, 1);
+ emit rowCountChanged(rowCount());
return addIndex;
}
@@ -233,6 +237,7 @@ int QBarDataProxy::addRow(QBarDataRow *row, const QString &label)
{
int addIndex = dptr()->addRow(row, &label);
emit rowsAdded(addIndex, 1);
+ emit rowCountChanged(rowCount());
return addIndex;
}
@@ -246,6 +251,7 @@ int QBarDataProxy::addRows(const QBarDataArray &rows)
{
int addIndex = dptr()->addRows(rows, 0);
emit rowsAdded(addIndex, rows.size());
+ emit rowCountChanged(rowCount());
return addIndex;
}
@@ -258,6 +264,7 @@ int QBarDataProxy::addRows(const QBarDataArray &rows, const QStringList &labels)
{
int addIndex = dptr()->addRows(rows, &labels);
emit rowsAdded(addIndex, rows.size());
+ emit rowCountChanged(rowCount());
return addIndex;
}
@@ -272,6 +279,7 @@ void QBarDataProxy::insertRow(int rowIndex, QBarDataRow *row)
{
dptr()->insertRow(rowIndex, row, 0);
emit rowsInserted(rowIndex, 1);
+ emit rowCountChanged(rowCount());
}
/*!
@@ -282,6 +290,7 @@ void QBarDataProxy::insertRow(int rowIndex, QBarDataRow *row, const QString &lab
{
dptr()->insertRow(rowIndex, row, &label);
emit rowsInserted(rowIndex, 1);
+ emit rowCountChanged(rowCount());
}
/*!
@@ -295,6 +304,7 @@ void QBarDataProxy::insertRows(int rowIndex, const QBarDataArray &rows)
{
dptr()->insertRows(rowIndex, rows, 0);
emit rowsInserted(rowIndex, rows.size());
+ emit rowCountChanged(rowCount());
}
/*!
@@ -305,6 +315,7 @@ void QBarDataProxy::insertRows(int rowIndex, const QBarDataArray &rows, const QS
{
dptr()->insertRows(rowIndex, rows, &labels);
emit rowsInserted(rowIndex, rows.size());
+ emit rowCountChanged(rowCount());
}
/*!
@@ -319,6 +330,7 @@ void QBarDataProxy::removeRows(int rowIndex, int removeCount, bool removeLabels)
if (rowIndex < rowCount() && removeCount >= 1) {
dptr()->removeRows(rowIndex, removeCount, removeLabels);
emit rowsRemoved(rowIndex, removeCount);
+ emit rowCountChanged(rowCount());
}
}