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

QColorDialog should allow name input

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Incomplete
    • P5: Not important
    • None
    • 4.8.7, 5.6.1
    • None

    Description

      The QColorDialog is currently limited to HTML hex names such as #aabbcc, a regular expression is in place to restrict other output. It would be nice if a color names such as "red" are allowed (which could possibly be translated to hex codes when the field focus is lost).

      Possible (new) flow:

      1. Type name "red".
      2. When the name "red" is complete, change the active color name to "#ff0000" (just like the color is currrently name is changed to #f00 or #ff0000).
      3. On losing focus, change the displayed HTML color to the hex code (#ff0000) for valid names. For invalid names, leave the text in the field but leave the original color as result (just like it is currently done for "#ff").

      Attachments

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

        Activity

          People

            mmutz Marc Mutz
            Lekensteyn Peter Wu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes