Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
Qt Creator 2.2.1
-
None
-
Hardware: Notebook Dell i7 (yeah) inside
OS: Windows 7 Enterprise
Env: Qt Windows SDK 1.1
Qt Creator: 2.2.1
My App: small application with 5-6 source files
Description
When using right click on a variable/object, in common words - user defined "entity", and selecting "Refactor -> Rename Symbol Under Cursor" it works fine. But when trying to rename the defined class name (defined in Qt), for instance in this code:
//header file //.... private: QVBoxLayout* m_documents_layout; //...... //cpp file //... m_documents_layout = new QVBoxLayout(this); m_documents_layout->addWidget(m_documents_view); //....
by renaming the QVBoxLayout (to me it should work fine, because I've decided to use QHBoxLayout instead), the editor/IDE renames also the QVBoxLayout declared in qboxlayout.h. E.g. it doesn't restricts itself to "refactor" only in local workspace area.
After this the build is going fail with error like "Redefinition of class QHBoxLayout"(actually the QVBoxLayout replaced with QHBoxLayout after refactoring and there are two QHBoxLayouts )
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-17849 Refactor->Rename Symbol Under Cursor will change matched name in Qt library file too
-
- Closed
-
- relates to
-
QTCREATORBUG-15055 Rename global variables renames unrelated variables outside project
-
- Closed
-
- resulted in
-
QTBUG-72766 Install headers as read-only to prevent accidently modifications
-
- Reported
-