Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.5.1
-
None
Description
If the reimplemented textFromValue() function returns a string with whitespace at the beginning or end, this is trimmed. It is being trimmed iff it is whitespace only, for instance " " would be cut off, while " ." would stay. Related to this is setting a whitespace prefix in Designer (Creator), this would also be cleared.
QString textFromValue (int iValue ) const {
QString sInt = QLocale().toString(iValue);
QString sVal = sInt.rightJustified(miWidth);
return sVal;
};