MCPcopy Create free account
hub / github.com/CloudCompare/CloudCompare / deleteStep

Method deleteStep

libs/CCPluginAPI/src/ccColorScaleEditorWidget.cpp:751–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749}
750
751void ccColorScaleEditorWidget::deleteStep(int index)
752{
753 assert(m_sliders);
754
755 if (index >= 0)
756 {
757 if (m_sliders->element(index)->isSelected())
758 onSliderSelected(-1);
759 m_sliders->removeAt(index);
760
761 update();
762 }
763}
764
765void ccColorScaleEditorWidget::setSelectedStepIndex(int index, bool silent/*=false*/)
766{

Callers 1

deletecSelectedStepMethod · 0.80

Calls 3

elementMethod · 0.80
updateFunction · 0.50
removeAtMethod · 0.45

Tested by

no test coverage detected