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

Goto slot code creation does not follow c++ indentation

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • P3: Somewhat important
    • Resolution: Unresolved
    • Qt Creator 3.0.1
    • None
    • C/C++/Obj-C++ Support
    • None
    • Windows 8.1

    Description

      The auto inserted code always has a 4 character indent instead of what is set in options.

      Steps to reproduce:

      1. Options|Text Editor|Behaviour: Tab size:2 & Indent size:2
      2. Options|C++|Edit CodeStyle|General: Tab size:2 & Indent size:2
      3. Create form (MainWindow)
      4. Put Push Button on form
      5. Right click on button and select 'goto slot', select 'clicked()'

      What do you see:
      Some code is inserted with a code block. The cursor is positioned on the first (and only) empty line in the code block at column 4.

      What do you expect:
      The cursor should be on column 2.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            woomla Wo Om Laq
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes