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

Auto-completion code insertion does not follow coding style

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 2.7.1, Qt Creator 3.0.1, Qt Creator 3.4.0-rc1, Qt Creator 4.4.0-beta1
    • C/C++/Obj-C++ Support
    • None
    • Gentoo Linux AMD64

      I configured a coding style that binds "&" and "*" to the type rather than the identifier. When inserting auto-completed code however, the coding style setting is ignored. For example, in a QWidget subclass, if I enter:

      void mousePressEvent
      

      and hit Tab followed by Enter, Creator inserts this:

      (QMouseEvent *e);
      

      which ignores the style setting. It should have inserted this instead:

      (QMouseEvent* e);
      

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

            kandeler Christian Kandeler
            realnc Nikos Chantziaras
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes