From c00fb11482ec7c103f05eb9ac8a210242064024a Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 19 Apr 2009 01:09:45 -0400 Subject: Add how the model changed in signals and slots for notification of changes --- sigmodr/tree/GroupModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sigmodr/tree/GroupModel.cpp') 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)), this, SLOT(childRowsChanged(QList))); + connect(model, SIGNAL(rowChanged(int, Sigmodr::Tree::BaseModel::Change)), this, SLOT(childRowChanged(int, Sigmodr::Tree::BaseModel::Change))); + connect(model, SIGNAL(rowsChanged(QList, Sigmodr::Tree::BaseModel::Change)), this, SLOT(childRowsChanged(QList, 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 -- cgit