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/BaseModel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sigmodr/tree/BaseModel.cpp') diff --git a/sigmodr/tree/BaseModel.cpp b/sigmodr/tree/BaseModel.cpp index 3981e923..0dceeaa4 100644 --- a/sigmodr/tree/BaseModel.cpp +++ b/sigmodr/tree/BaseModel.cpp @@ -128,16 +128,16 @@ bool BaseModel::loadFromData(const QString& data, QDomDocument* xml) const return loaded; } -void BaseModel::childRowChanged(const int row) +void BaseModel::childRowChanged(const int row, const Change change) { QList indexes; indexes << indexNumber() << row; - emit(rowsChanged(indexes)); + emit(rowsChanged(indexes, change)); } -void BaseModel::childRowsChanged(const QList& rows) +void BaseModel::childRowsChanged(const QList& rows, const Change change) { QList indexes; indexes << indexNumber() << rows; - emit(rowsChanged(indexes)); + emit(rowsChanged(indexes, change)); } -- cgit