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
rainintervalcombobox.h File Reference
#include <QComboBox>
#include "ui/properties/rainintervalref.h"
Include dependency graph for rainintervalcombobox.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RainIntervalComboBox
 

Detailed Description

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

DA.2 parity follow-up — inline editable combobox editor for the rain gage "Recording Interval" Property Browser row. Mirrors CulvertCodeComboBox, but is editable (legacy esComboEdit): the user can pick one of the legacy H:MM presets or type a custom clock value.

Registered against the RainIntervalRef metatype via QPropertyItemDelegate::registerCustomTypeEditorCreator.

Apply-as-you-go (same contract as CulvertCodeComboBox): committing a value parses the H:MM text to seconds and writes immediately through the engine (or the model layer when bound), then emits valueChanged() so the delegate's setModelData round-trip refreshes the row. A malformed entry is ignored (no write), leaving the stored value unchanged.