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

Auto-completion code insertion does not follow coding style

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • 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

    Description

      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);
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: