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

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 18.0 (master branch)
    • SCXML support
    • None

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes