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

Method load

src/frontend/widgets/SymbolWidget.cpp:291–306  ·  view source on GitHub ↗

SETTINGS

Source from the content-addressed store, hash-verified

289//******************** SETTINGS ****************************
290//**********************************************************
291void SymbolWidget::load() {
292 int index = ui.cbStyle->findData((int)m_symbol->style());
293 ui.cbStyle->setCurrentIndex(index);
294 ui.sbSize->setValue(std::round(Worksheet::convertFromSceneUnits(m_symbol->size(), Worksheet::Unit::Point)));
295 ui.sbRotation->setValue(std::round(m_symbol->rotationAngle()));
296 ui.sbOpacity->setValue(std::round(m_symbol->opacity() * 100.0));
297 ui.cbFillingStyle->setCurrentIndex((int)m_symbol->brush().style());
298 ui.kcbFillingColor->setColor(m_symbol->brush().color());
299 ui.cbBorderStyle->setCurrentIndex((int)m_symbol->pen().style());
300 ui.kcbBorderColor->setColor(m_symbol->pen().color());
301 ui.sbBorderWidth->setValue(std::round(Worksheet::convertFromSceneUnits(m_symbol->pen().widthF(), Worksheet::Unit::Point)));
302
303 GuiTools::updateBrushStyles(ui.cbFillingStyle, ui.kcbFillingColor->color());
304 GuiTools::updatePenStyles(ui.cbBorderStyle, ui.kcbBorderColor->color());
305 styleChanged(ui.cbStyle->currentIndex());
306}
307
308void SymbolWidget::loadConfig(const KConfigGroup& group) {
309 int index = ui.cbStyle->findData((int)m_symbol->style());

Callers

nothing calls this directly

Calls 6

setCurrentIndexMethod · 0.45
setValueMethod · 0.45
sizeMethod · 0.45
setColorMethod · 0.45
colorMethod · 0.45
currentIndexMethod · 0.45

Tested by

no test coverage detected