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

Add a setFailed method to QUndoCommand

    XMLWordPrintable

Details

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

    Description

      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.

      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