![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
QDateTimeEdit-in-a-cell, formatted MM/dd/yyyy HH:mm.
More...
#include <datetimedelegate.h>
Public Member Functions | |
| DateTimeDelegate (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 |
QDateTimeEdit-in-a-cell, formatted MM/dd/yyyy HH:mm.
Seconds are absent from the format but NOT discarded. The editor is seeded with the model's full QDateTime and a QDateTimeEdit preserves the sections its display format omits, so a stamp at 00:15:30 survives an edit of its minute field. SWMM stores whole seconds and the engine's [TIMESERIES] writer emits HH:MM:SS, so dropping them here would be the same class of silent truncation as GH #1.
|
explicit |
|
override |
|
override |
|
override |