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

QState::addTransition(sender, signal, target) should accept null as target

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • P3: Somewhat important
    • Resolution: Unresolved
    • 5.3.0
    • None
    • Core: State Machine
    • None

    Description

      States with no target are completely legitmate and the docs clearly state that.
      It is however an error to use

      QSignalTransition *QState::addTransition(QObject *sender, const char *signal, AbstractState *target)

      without setting a target, although if one creates new QSignalTransition (which is what the function does anyways) and does not set it's target (or set it to null) it is just fine.

      This is unexpected asymmetry, one should also be able to pass a null to addTransition.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mnaydenov Mihail Naydenov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes