OGS
ModelTreeItem.cpp
Go to the documentation of this file.
1 
15 #include "ModelTreeItem.h"
16 
17 ModelTreeItem::ModelTreeItem(const QList<QVariant>& data, TreeItem* parent,
18  BaseItem* item)
19  : TreeItem(data, parent), _item(item), _stn(nullptr)
20 {
21 }
22 
24 {
25  if (_item != nullptr)
26  {
27  return _item;
28  }
29  return nullptr;
30 }
Definition of the ModelTreeItem class.
A BaseItem contains additional Information about a subtree in the StationTreeModel.
Definition: BaseItem.h:32
BaseItem * getItem() const
Returns the BaseItem associated with this item.
BaseItem * _item
Definition: ModelTreeItem.h:52
ModelTreeItem(const QList< QVariant > &data, TreeItem *parent, BaseItem *item=nullptr)
Objects nodes for the TreeModel.
Definition: TreeItem.h:28