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

Code completion and refactoring for local class doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 2.7.0, Qt Creator 2.8.0, Qt Creator 3.1.0-beta
    • C/C++/Obj-C++ Support
    • None
    • Window 7
      Qt Creator 3.0.1
      Basé sur Qt 5.2.1 (MSVC 2010, 32 bit)

      Compilé le Jan 31 2014 à 05:16:27

      Depuis la révision 51af63bb9e

      Copyright 2008-2014 Digia Plc. Tous droits réservés.

      when i define a local class in a function:

      #include <QThread>
      ...
      void MyClass::DoSomething(){
         class MyLocalClass: public QThread{
             int m_my_attribute;
             public: 
             MyLocalClass(){
                
             }
            
             void do_som(){}
       
          };
          MyLocalClass local_class;
      }
      

      inside the constructor , m_my_attribute is note accessible via code completion;

      i can't insert virtual function of base class with the refactoring contextmenu tool

      int m_my_attribute is not colored.

      and code completion on variable local_class doesnt work too

      I need this functionnality when overriding visitors.
      and doesnt have code completion stuff is a pain!

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

            kosjar Nikolai Kosjar
            david_tazy David ALLEMANT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes