Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-4085

Whitespace is being trimmed in QSpinBox

    XMLWordPrintable

Details

    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;
      };

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            mpejcoch Martin Pejcoch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes