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

Creator doesn't always append const when autocomplete is used for function declaration or definition

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • Qt Creator 2.4.0
    • C/C++/Obj-C++ Support
    • None

    Description

      For instance if my CustomItem class subclasses QGraphicsItem and I want to supply the declaration of boundingRect() that should be const. auto-complete of that declaration after typing "boudingR" won't add "const". Auto-complete after "boundingRect(" will add "const".

      Similarly, when I finish the declaration by hand and go to .cpp to define it, auto-complete after typing "CustomItem::boundingR" won't add "const".

      It appears that the problem is only present for function without parameters.

      Attachments

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              element9 Bojan Petrovic
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes