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

Method setModel

src/frontend/widgets/ErrorBarWidget.cpp:168–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void ErrorBarWidget::setModel(AspectTreeModel* model) {
169 cbXPlusColumn->setModel(model);
170 cbXMinusColumn->setModel(model);
171 const auto& list = TreeViewComboBox::plotColumnTopLevelClasses();
172 cbXPlusColumn->setTopLevelClasses(list);
173 cbXMinusColumn->setTopLevelClasses(list);
174
175 cbYPlusColumn->setModel(model);
176 cbYMinusColumn->setModel(model);
177 cbYPlusColumn->setTopLevelClasses(list);
178 cbYMinusColumn->setTopLevelClasses(list);
179}
180
181void ErrorBarWidget::showEvent(QShowEvent* event) {
182 QWidget::showEvent(event);

Callers 1

setValuesMethod · 0.45

Calls 1

setTopLevelClassesMethod · 0.80

Tested by

no test coverage detected