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

QTextBlockFormat.setAlignment() should fail gracefully

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • 4.6.1
    • 4.5.2
    • ODF Writer
    • None

    Description

      If you set an unsupported alignment you get a message on the console, e.g., "QTextOdfWriter: unsupported paragraph alignment; 68". This is fine, but what isn't fine is that no alignment is applied.

      So if you do textBlockFormat.setAlignment(Qt::AlignHCenter|Qt::AlignBottom), you don't get any alignment set (because AlignBottom isn't supported). What should happen is that Qt masks out any unsupported alignments and if there's any left, applies them.

      And of course, Qt should support AlignBottom.

      Attachments

        1. bug2.pro
          0.1 kB
        2. main.cpp
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            zander tho (closed Nokia identity) (Inactive)
            m.n.summerfield Mark Summerfield
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes