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

Text indentation is not working properly.

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 2.5.0-beta
    • Fix Version/s: None
    • Component/s: Quick / QML Support
    • Labels:
      None

      Description

      SOFTWARE VERSION / VARIANT / LANGUAGE PACK:
      SDK_Test_wk10_Qt_Creator_2_5_Beta_testing
      Qt Creator 2.4.81
      Based on Qt 4.8.0 (32 bit)
      From revision ab64c1aef3

      PRECONDITIONS OR PREVIOUS STATUS:
      Qt SDK installed to desktop. Qt Creator Started. Hello World application (Qt Quick Application) created.

      STEPS LEADING TO PROBLEM AND OUTCOME:
      1. Open the MainPage.qml file for editing or any other .qml file.

      2. Add following lines to the file:

      var random = true
      var addresses =
      {
      street: random ? false : "Ahonrinne 1",
      postalCode: random ? false : "91900"
      }

      3. Select the code snippet and press Ctrl+i (indentation).

      EXPECTED OUTCOME:
      Code snipped should be formatted like this:

      var random = true
      var addresses =
      {
      street: random ? false : "Ahonrinne 1",
      postalCode: random ? false : "91900"
      }

      ACTUAL OUTCOME:

      Code snippet is formatted wrong:

      var random = true
      var addresses =
      {
      street: random ? false : "Ahonrinne 1",
      postalCode: random ? false : "91900"
      }

        Attachments

        1. Screenshot_1.png
          Screenshot_1.png
          162 kB
        2. Screenshot_2.png
          Screenshot_2.png
          162 kB
        3. Screenshot_3.png
          Screenshot_3.png
          162 kB
        For Gerrit Dashboard: QTCREATORBUG-7103
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              mabenell Marco Benelli
              Reporter:
              vajdama Marek Vajda
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes