-
Bug
-
Resolution: Done
-
P4: Low
-
5.1.0 Beta 1
-
None
-
qtquickcontrols/release: 6de2c97d064daa069066bb46880f04bfd5be43b7
/*!
\qmlmethod Slider::formatValue
This method returns the current slider value in a way that is more suitable
for user display, such as the \l value rounded to only two decimal places.
By default this function returns the nearest \c int value.
*/
function formatValue(v) {
return Math.round(v);
}
formatValue will always return a int. It should also round to for example 2 decimals.
| For Gerrit Dashboard: QTBUG-31262 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 57471,2 | Docs: fix missing/leftover docs, types, tags... | release | qt/qtquickcontrols | Status: MERGED | +2 | 0 |