MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / operator<

Method operator<

pj_widgets/src/CurveTreeView.cpp:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
95class CurveTreeItemDelegate : public QStyledItemDelegate {

Callers

nothing calls this directly

Calls 2

sortKeyForItemFunction · 0.85
textMethod · 0.45

Tested by

no test coverage detected