| 82 | explicit CurveTreeItem(QTreeWidgetItem* parent) : QTreeWidgetItem(parent) {} |
| 83 | |
| 84 | bool operator<(const QTreeWidgetItem& other) const override { |
| 85 | const QString lhs_key = sortKeyForItem(*this); |
| 86 | const QString rhs_key = sortKeyForItem(other); |
| 87 | const int folded_compare = QString::localeAwareCompare(lhs_key, rhs_key); |
| 88 | if (folded_compare != 0) { |
| 89 | return folded_compare < 0; |
| 90 | } |
| 91 | return QString::localeAwareCompare(text(kNameColumn), other.text(kNameColumn)) < 0; |
| 92 | } |
| 93 | }; |
| 94 | |
| 95 | class CurveTreeItemDelegate : public QStyledItemDelegate { |
nothing calls this directly
no test coverage detected