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

Add a setFailed method to QUndoCommand

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • Some future release
    • 4.3.0
    • Other
    • None

      If a (possibly) complex operation can fail, it is currently rather complicated to use it with the QUndo framework as there is no way to tell the framework to simply forget about the current action.

      Changing the signature of "redo" to return a boolean won't be an option, so a protected "setFailed" property could be added to QUndoCommand which could then be evaluated by the QUndoStack.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes