mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-11 06:27:41 +00:00
Implement LayersEditor
This commit is contained in:
@@ -94,6 +94,14 @@ ProjectModel::BasePoolObjectNode* ProjectModel::CollectionNode::nodeOfIndex(int
|
||||
return static_cast<BasePoolObjectNode*>(m_children[idx].get());
|
||||
}
|
||||
|
||||
ProjectModel::BasePoolObjectNode* ProjectModel::CollectionNode::nodeOfId(amuse::ObjectId id) const
|
||||
{
|
||||
int idx = indexOfId(id);
|
||||
if (idx < 0)
|
||||
return nullptr;
|
||||
return nodeOfIndex(idx);
|
||||
}
|
||||
|
||||
ProjectModel::ProjectModel(const QString& path, QObject* parent)
|
||||
: QAbstractItemModel(parent), m_dir(path), m_nullProxy(this)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user