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

Method setModel

src/frontend/dockwidgets/BarPlotDock.cpp:165–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void BarPlotDock::setModel() {
166 auto* model = aspectModel();
167 model->enablePlottableColumnsOnly(true);
168 model->enableShowPlotDesignation(true);
169 model->setSelectableAspects({AspectType::Column});
170 cbXColumn->setTopLevelClasses(TreeViewComboBox::plotColumnTopLevelClasses());
171 cbXColumn->setModel(model);
172 errorBarWidget->setModel(model);
173}
174
175void BarPlotDock::loadDataColumns() {
176 // add the combobox for the first column, is always present

Callers 2

loadDataColumnsMethod · 0.45
addDataColumnMethod · 0.45

Calls 4

setSelectableAspectsMethod · 0.80
setTopLevelClassesMethod · 0.80

Tested by

no test coverage detected