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

Function curveNameForItem

pj_widgets/src/CurveTreeView.cpp:149–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149QString curveNameForItem(const QTreeWidgetItem* item) {
150 if (item == nullptr) {
151 return {};
152 }
153 return item->data(kNameColumn, Qt::UserRole).toString();
154}
155
156bool isObjectTopicItem(const QTreeWidgetItem* item) {
157 return item != nullptr && !item->data(kNameColumn, kObjectTopicRole).toString().isEmpty();

Callers 1

Calls 2

toStringMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected