summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/GroupModel.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-04-19 01:09:45 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-04-19 01:09:45 -0400
commitc00fb11482ec7c103f05eb9ac8a210242064024a (patch)
tree7705b3635210c5f0fb09f80abf4f520ba06a208c /sigmodr/tree/GroupModel.cpp
parentafef610298a2803877e79fc1f781f224ca90b832 (diff)
downloadsigen-c00fb11482ec7c103f05eb9ac8a210242064024a.tar.gz
sigen-c00fb11482ec7c103f05eb9ac8a210242064024a.tar.xz
sigen-c00fb11482ec7c103f05eb9ac8a210242064024a.zip
Add how the model changed in signals and slots for notification of changes
Diffstat (limited to 'sigmodr/tree/GroupModel.cpp')
-rw-r--r--sigmodr/tree/GroupModel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sigmodr/tree/GroupModel.cpp b/sigmodr/tree/GroupModel.cpp
index c339f9c7..9d14aaef 100644
--- a/sigmodr/tree/GroupModel.cpp
+++ b/sigmodr/tree/GroupModel.cpp
@@ -71,10 +71,10 @@ Qt::DropActions GroupModel::supportedDropActions() const
void GroupModel::addChild(BaseModel* model)
{
- connect(model, SIGNAL(rowChanged(int)), this, SLOT(childRowChanged(int)));
- connect(model, SIGNAL(rowsChanged(QList<int>)), this, SLOT(childRowsChanged(QList<int>)));
+ connect(model, SIGNAL(rowChanged(int, Sigmodr::Tree::BaseModel::Change)), this, SLOT(childRowChanged(int, Sigmodr::Tree::BaseModel::Change)));
+ connect(model, SIGNAL(rowsChanged(QList<int>, Sigmodr::Tree::BaseModel::Change)), this, SLOT(childRowsChanged(QList<int>, Sigmodr::Tree::BaseModel::Change)));
m_objects.append(model);
- emit(rowChanged(m_objects.size() - 1));
+ emit(rowChanged(m_objects.size() - 1, Addition));
}
int GroupModel::findChild(BaseModel* model) const