MCPcopy Create free account
hub / github.com/KDAB/KDChart / initValues

Method initValues

examples/Stock/Advanced/mainwindow.cpp:81–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void MainWindow::initValues()
82{
83 m_threeDBarAttributes = m_diagram.threeDBarAttributes();
84 m_threeDBarAttributes.setDepth(10.0);
85 m_threeDBarAttributes.setUseShadowColors(false);
86 threeDProperties->setChecked(m_threeDBarAttributes.isEnabled());
87 perspectiveAngle->setValue(m_threeDBarAttributes.angle());
88 perspectiveDepth->setValue(( int )m_threeDBarAttributes.depth());
89 useShadowColors->setChecked(m_threeDBarAttributes.useShadowColors());
90 m_diagram.setThreeDBarAttributes(m_threeDBarAttributes);
91}
92
93void MainWindow::on_threeDProperties_toggled(bool checked)
94{

Callers

nothing calls this directly

Calls 8

setDepthMethod · 0.80
depthMethod · 0.80
threeDBarAttributesMethod · 0.45
setUseShadowColorsMethod · 0.45
isEnabledMethod · 0.45
angleMethod · 0.45
useShadowColorsMethod · 0.45

Tested by

no test coverage detected