#include <numerictablewidgetitem.h>
|
| bool | operator< (const QTableWidgetItem &other) const override |
| | Sort finite numeric keys before unavailable/text values while preserving formatted display text.
|
| |
◆ operator<()
| bool openswmmvis::ui::NumericTableWidgetItem::operator< |
( |
const QTableWidgetItem & |
other | ) |
const |
|
inlineoverride |
Sort finite numeric keys before unavailable/text values while preserving formatted display text.
- Parameters
-
| [in] | other | Compared table item. Each side uses SortKeyRole when valid, otherwise text() converted through QVariant::toDouble(). |
- Returns
- Numeric less-than when both are finite, true when only this side is numeric, or the base QTableWidgetItem comparison when neither converts. An invalid numeric explicit key does not fall back to text.
◆ SortKeyRole
| constexpr int openswmmvis::ui::NumericTableWidgetItem::SortKeyRole = Qt::UserRole + 1 |
|
staticconstexpr |
The documentation for this class was generated from the following file: