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

Method updateContent

src/frontend/datasources/NetCDFOptionsWidget.cpp:49–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void NetCDFOptionsWidget::updateContent(NetCDFFilter* filter, const QString& fileName) {
50 ui.twContent->clear();
51
52 QTreeWidgetItem* rootItem = ui.twContent->invisibleRootItem();
53 filter->parse(fileName, rootItem);
54 ui.twContent->insertTopLevelItem(0, rootItem);
55 ui.twContent->expandAll();
56 ui.twContent->resizeColumnToContents(0);
57 ui.twContent->resizeColumnToContents(2);
58}
59
60/*!
61 updates the selected var name of a NetCDF file when the 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