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

Method populateSources

pj_plotting/widget/src/FilterEditorPanel.cpp:235–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void FilterEditorPanel::populateSources() {
236 ui_->series_list->setSelectionMode(QAbstractItemView::ExtendedSelection);
237 for (std::size_t i = 0; i < sources_.size(); ++i) {
238 // A source that is itself a filter output is labelled by its ORIGINAL input
239 // series (not the output alias), so reopening reads as "edit <input>".
240 auto* item = new QListWidgetItem(readableName(originalInputOf(sources_[i])), ui_->series_list);
241 item->setData(Qt::UserRole, static_cast<int>(i));
242 }
243 if (!sources_.empty()) {
244 ui_->series_list->setCurrentRow(0);
245 }
246}
247
248void FilterEditorPanel::populateTransforms() {
249 ui_->transform_list->clear();

Callers

nothing calls this directly

Calls 4

readableNameFunction · 0.85
sizeMethod · 0.45
setDataMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected