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

Qt Quick Desginer inserts wrong indentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 3.1.1
    • None
    • Qt Creator 3.1.1
      Based on Qt 5.2.1 (GCC 4.8.2, 64 bit)

      Built on Aug 1 2014 at 17:31:01

      I noticed that the Design tab inserts wrong indentation.

      Added to this issue is a screenshot of my settings (bugIndentationSettings.png)

      I've created a QML document and, in the designer, dragged an Item and a Text into the root Rectangle. When switching back to the editor, the indentation is inserted as spaces, and there are 5 spaces where should be 2 tabs (8 spaces), and 9 spaces where there should be 3 tabs (12 spaces). Looks like the first tab is converted to one space, and every subsequent tab is converted to 4 spaces. (bugIndentationExample.png)

      Then when I save the QML document in the editor, the spaces are converted to tabs. One tab for every 4 spaces. As you might expect this fails to set the tabs correctly because there's one space left. (bugIndentationAfterSave.png)

      Please let me know if more info is required.

        1. bugIndentationAfterSave.png
          19 kB
          Geert-Johan Riemer
        2. bugIndentationExample.png
          18 kB
          Geert-Johan Riemer
        3. bugIndentationSettings.png
          25 kB
          Geert-Johan Riemer
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            fawzi Fawzi Mohamed
            geertjohan Geert-Johan Riemer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes