MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / convertValueToText

Method convertValueToText

src/ui/slider.cpp:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71std::string Slider::convertValueToText(int value) const
72{
73 if (m_delegate)
74 return m_delegate->onGetTextFromValue(value);
75 else {
76 return std::to_string(value);
77 }
78}
79
80int Slider::convertTextToValue(const std::string& text) const
81{

Callers 3

paintSliderMethod · 0.80
setValueMethod · 0.80
onSizeHintMethod · 0.80

Calls 2

to_stringFunction · 0.85
onGetTextFromValueMethod · 0.80

Tested by

no test coverage detected