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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.3.0
    • Fix Version/s: None
    • Component/s: Core: State Machine
    • Labels:
      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            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