SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
HydrographGroupListModel Class Reference

#include <hydrographmodels.h>

Inheritance diagram for HydrographGroupListModel:
Collaboration diagram for HydrographGroupListModel:

Public Member Functions

 HydrographGroupListModel (SWMMModelLayer *layer)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
int indexOf (const QString &name) const
 
QString nameAt (int row) const
 

Constructor & Destructor Documentation

◆ HydrographGroupListModel()

HydrographGroupListModel::HydrographGroupListModel ( SWMMModelLayer layer)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ data()

QVariant HydrographGroupListModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flags()

Qt::ItemFlags HydrographGroupListModel::flags ( const QModelIndex &  index) const
override

◆ headerData()

QVariant HydrographGroupListModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override

◆ indexOf()

int HydrographGroupListModel::indexOf ( const QString &  name) const

Look up the row index of a group by name, or -1 if not present.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nameAt()

QString HydrographGroupListModel::nameAt ( int  row) const

Read the group name at a given row, or empty if out of bounds.

Here is the call graph for this function:

◆ rowCount()

int HydrographGroupListModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setData()

bool HydrographGroupListModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override
Here is the call graph for this function:

The documentation for this class was generated from the following files: