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
openswmmvis::ui::TreatmentExpressionDelegate Class Reference

#include <treatmentexpressionedit.h>

Inheritance diagram for openswmmvis::ui::TreatmentExpressionDelegate:
Collaboration diagram for openswmmvis::ui::TreatmentExpressionDelegate:

Signals

void validationChanged (bool ok, const QString &msg, int col) const
 

Public Member Functions

 TreatmentExpressionDelegate (void *engineHandle, QObject *parent=nullptr)
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void setEditorData (QWidget *editor, const QModelIndex &index) const override
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 

Detailed Description

Cell delegate for the Treatment page's Expression column. Forwards the hosted editor's live validation through validationChanged so the page banner can mirror it.

Constructor & Destructor Documentation

◆ TreatmentExpressionDelegate()

openswmmvis::ui::TreatmentExpressionDelegate::TreatmentExpressionDelegate ( void *  engineHandle,
QObject *  parent = nullptr 
)
explicit

Member Function Documentation

◆ createEditor()

QWidget * openswmmvis::ui::TreatmentExpressionDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override
Here is the call graph for this function:

◆ setEditorData()

void openswmmvis::ui::TreatmentExpressionDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
override

◆ setModelData()

void openswmmvis::ui::TreatmentExpressionDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
override

◆ validationChanged

void openswmmvis::ui::TreatmentExpressionDelegate::validationChanged ( bool  ok,
const QString &  msg,
int  col 
) const
signal
Here is the caller graph for this function:

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