MCPcopy Create free account
hub / github.com/KDE/labplot / updateContent

Method updateContent

src/frontend/datasources/HDF5OptionsWidget.cpp:48–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48int HDF5OptionsWidget::updateContent(HDF5Filter* filter, const QString& fileName) {
49 ui.twContent->clear();
50 QTreeWidgetItem* rootItem = ui.twContent->invisibleRootItem();
51 int status = filter->parse(fileName, rootItem);
52 if (status != 0) // parsing failed
53 return status;
54
55 ui.twContent->insertTopLevelItem(0, rootItem);
56 ui.twContent->expandAll();
57 ui.twContent->resizeColumnToContents(0);
58 ui.twContent->resizeColumnToContents(3);
59
60 return 0;
61}
62
63/*!
64 updates the selected data set of a HDF5 file when a new tree widget item is selected

Callers

nothing calls this directly

Calls 3

expandAllMethod · 0.80
clearMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected