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

Add protected pop() method to QUndoStack

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.7.0
    • None

      Every time I need to add some extended functionality like committing command stack from local PC to global server I have to include private headers and implement this very simple pop() (delete command(0) to the QUndoStack.

      Why? Because when things go wrong and some commands leaves undone all I can do is to clear the stack and show message box with error icon.
      canUndo method is not marked as virtual, so I can't just mark some commands can not be undone. Also I can't setIndex() without calling redo() so I have to mark all messages from server by some ID to prevent executing same redo() operation twice. This is ridiculous!

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            icpu Alex Frost
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes