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

Indentation is incorrect when adding a new slot after configuring indent size in TextEditor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 13.0.0-rc1
    • C/C++/Obj-C++ Support
    • None
    • Windows 10
      Product: Qt Creator 13.0.0-rc1 (12.0.84)
      Based on: Qt 6.6.2 (MSVC 2019, x86_64)
      Built on: Mar 4 2024 01:49:03
      From revision: 51ca09c2d7
    • Windows

    Description

      Indentation is incorrect when adding a new slot after configuring indent size in TextEditor

      STEPS:

      • Preferences -> Text Editor -> Behaviour: Tab size:2 & Indent size:2
           Click Apply

      • Go to Preferences -> Text Editor -> C++.  
      • Observe that in General tab, the Tab size is shown as  4.

      • Open / Create a project with mainwindow form
      • Open the mainwindow.ui and add a push button
      • Click on "Go to slot" , which will add the slot function

       

      OBSERVED:

      • The cursor is still 4 spaces from the start of line

      EXPECTED:

      • The cursor should be 2 spaces from the start of line
      • When setting 'Preferences -> Text Editor -> Behaviour: Tab size:2 & Indent size:2', it should reflect in Text Editor -> C++ also

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              aamershaikh23 Aamer Shaikh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes