summaryrefslogtreecommitdiffstats
path: root/sigmodr/models/BaseModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/models/BaseModel.cpp')
-rw-r--r--sigmodr/models/BaseModel.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/sigmodr/models/BaseModel.cpp b/sigmodr/models/BaseModel.cpp
index 5ef98e74..f64baf35 100644
--- a/sigmodr/models/BaseModel.cpp
+++ b/sigmodr/models/BaseModel.cpp
@@ -47,7 +47,7 @@ Sigmodr::BaseModel* Sigmodr::BaseModel::parent()
int Sigmodr::BaseModel::indexNumber() const
{
if (m_parent)
- return m_parent->findChild(this);
+ return m_parent->findChild(const_cast<BaseModel*>(this));
return -1;
}
@@ -61,7 +61,17 @@ const Sigmod::Object* Sigmodr::BaseModel::object() const
return m_object;
}
-int Sigmodr::BaseModel::findChild(const BaseModel* /*model*/) const
+void Sigmodr::BaseModel::childRowChanged(const int row)
{
- return -1;
+ QList<int> indexes;
+ indexes << indexNumber() << row;
+ emit(rowsChanged(indexes));
}
+
+void Sigmodr::BaseModel::childRowsChanged(const QList<int>& rows)
+{
+ QList<int> indexes;
+ indexes << indexNumber() << rows;
+ emit(rowsChanged(indexes));
+}
+