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

Method changedIndex

examples/demo/gradientdialog.cpp:64–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void GradientDialog::Private::changedIndex(int index)
65{
66 if (index >= 0) {
67 ui->stopPosition->setValue(m_gradient[index].first);
68 QColor stopColor = m_gradient[index].second;
69 redSlider->setValue(stopColor.red());
70 greenSlider->setValue(stopColor.green());
71 blueSlider->setValue(stopColor.blue());
72 }
73}
74
75void GradientDialog::Private::insertItem()
76{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected