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

Feature Request, QUndoView

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.4.0
    • Other
    • None

    Description

      I can set the "clean" icon with QUndoView::setCleanIcon() but I can't
      set an icon for the other undo steps. This looks very crappy. So IMO I
      need 4 different icons:

      • clean state
      • current undo step
      • undo steps
      • redo steps

      E.g. a green arrow marks the highlighted current undo step.
      Red/Blue bullets for the undo/redo steps just as decoration.
      And a disk symbol for the clean state.

      I hope you got my idea.

      Another idea is that QUndoCommand can provide an additional icon. But I
      think this is not very good from a usability point of view.

      As implementation suggestion I would suggest a new enum. So you can keep
      the old setCleanIcon method for compatibility reasons.

      class QUndoView {
      ~ // ...
      ~ enum IconType

      { CleanStateIcon, CurrentPositionIcon, UndoIcon, RedoIcon }

      ;
      ~ // ...
      ~ void setStackIcon( IconType type, QIcon icon );
      ~ QIcon stackIcon( IconType ) const;
      ~ // ...
      }

      Attachments

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

        Activity

          People

            bdo Jo Asplin (Inactive)
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes