OGS
CondItem.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <memory>
14
16#include "Base/TreeItem.h"
17
18#include <QList>
19#include <QVariant>
20
25class CondItem : public TreeItem
26{
27public:
29 CondItem(const QList<QVariant>& data, TreeItem* parent,
31 : TreeItem(data, parent), _cond(cond)
32 {
33 }
34
37
38 QString const getName() const { return data(0).toString(); }
39
40private:
42};
Definition of the TreeItem class.
A TreeItem containing a boundary condition or source term.
Definition CondItem.h:26
DataHolderLib::FemCondition * getCondition() const
Returns the FEM Condition associated with the item.
Definition CondItem.h:36
CondItem(const QList< QVariant > &data, TreeItem *parent, DataHolderLib::FemCondition *cond)
Constructor.
Definition CondItem.h:29
DataHolderLib::FemCondition * _cond
Definition CondItem.h:41
QString const getName() const
Definition CondItem.h:38
Base class for boundary conditions, initial conditions and source terms.
Objects nodes for the TreeModel.
Definition TreeItem.h:28
virtual QVariant data(int column) const
Definition TreeItem.cpp:94