Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33139

SCXMLEditor: TransitionItem text width calculation causes state diagrams to be too wide

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 18.0.0
    • SCXML support
    • None

      The current implementation of `TransitionItem::textWidth()` returns the sum of the event and condition tag widths. However, since the condition tag visually wraps beneath the event tag, this results in the state diagram being unnecessarily wide. The text width should instead be determined by the maximum width of the two tags, not their sum.

      Attached suggested patch.

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

            jkobus Jarek Kobus
            sindres Sindre Strømøy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes