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

Add getter/setter for the next custom color index in QColorDialog.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.9.0
    • None

    Description

      Currently custom colors can be set/retrieved, but not the index of the next custom color to be set. This value is set to 0 in the dialog's initialization, which means every time the dialog is opened user can either overwrite the first custom color or select another slot first, which changes the currently selected color. Both of these options are equally annoying to the users.

      It would be thus beneficial to be able to save/restore that value. It is already tracked internally (QColorDialogPrivate::nextCust), so it's just a matter of adding a public getter/setter.

      Related proposal is that the value could be stored/restored together with the custom colors themselves, or at least made static, relieving the user from having to manually store/restore it every time. Since the custom colors are shared between dialog invocations that index should be too.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              chrisaverage Krzysztof Kawa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes