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::IntervalDelegate Class Reference

#include <attributedelegates.h>

Inheritance diagram for openswmmvis::IntervalDelegate:
Collaboration diagram for openswmmvis::IntervalDelegate:

Public Member Functions

 IntervalDelegate (QObject *parent=nullptr)
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &opt, 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

Editable interval editor — a QComboBox seeded with the legacy rain gage H:MM presets (0:01 … 24:00) but editable, so the user can also type a custom clock value (legacy esComboEdit). The cell value is the H:MM string; the model's setter wrappers convert to/from engine seconds.

Constructor & Destructor Documentation

◆ IntervalDelegate()

openswmmvis::IntervalDelegate::IntervalDelegate ( QObject *  parent = nullptr)
explicit

Member Function Documentation

◆ createEditor()

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

◆ setEditorData()

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

◆ setModelData()

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

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