diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-04-19 01:09:45 -0400 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-04-19 01:09:45 -0400 |
| commit | c00fb11482ec7c103f05eb9ac8a210242064024a (patch) | |
| tree | 7705b3635210c5f0fb09f80abf4f520ba06a208c /sigmodr/tree/GroupObjectModel.cpp | |
| parent | afef610298a2803877e79fc1f781f224ca90b832 (diff) | |
Add how the model changed in signals and slots for notification of changes
Diffstat (limited to 'sigmodr/tree/GroupObjectModel.cpp')
| -rw-r--r-- | sigmodr/tree/GroupObjectModel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sigmodr/tree/GroupObjectModel.cpp b/sigmodr/tree/GroupObjectModel.cpp index 982a4885..50bde62c 100644 --- a/sigmodr/tree/GroupObjectModel.cpp +++ b/sigmodr/tree/GroupObjectModel.cpp @@ -50,10 +50,10 @@ BaseModel* GroupObjectModel::childItem(const int row) void GroupObjectModel::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 GroupObjectModel::findChild(BaseModel* model) const |
