MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / sortKeyForItem

Function sortKeyForItem

pj_widgets/src/CurveTreeView.cpp:72–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72QString sortKeyForItem(const QTreeWidgetItem& item) {
73 const QString cached_key = item.data(kNameColumn, kSortKeyRole).toString();
74 if (!cached_key.isEmpty() || item.text(kNameColumn).isEmpty()) {
75 return cached_key;
76 }
77 return item.text(kNameColumn).toCaseFolded();
78}
79
80class CurveTreeItem : public QTreeWidgetItem {
81 public:

Callers 1

operator<Method · 0.85

Calls 4

toStringMethod · 0.80
dataMethod · 0.45
isEmptyMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected