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

[Reg]Qmlformat indents functions incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical P1: Critical
    • 6.10
    • 6.10.0 Beta3
    • QML: Tooling
    • Linux Mint 22 Cinnamon
    • Linux/X11

      I have attached a small example project where qmlformat indents functions incorrectly when saving a file in QtCreator 17. See also attached screenshot.

      qmlformat.ini

      [General]
      FunctionsSpacing=true
      IndentWidth=4
      MaxColumnWidth=120
      NewlineType=native
      NormalizeOrder=true
      ObjectsSpacing=true
      SemicolonRule=always
      SortImports=false
      UseTabs=false 

        1. Screenshot_code.png
          Screenshot_code.png
          76 kB
        2. qmlformatIndent.zip
          2 kB
        3. Screenshot_preferences.png
          Screenshot_preferences.png
          101 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            semih.yavuz Semih Yavuz
            decon Daniel M
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes