Suppose I have a file "publicheader.h", which is part of a project I am currently editing.
In the ".pro" file, I have HEADERS += publicheader.h I also have a COPY of myheader.h in a publics path, so other projects can easily include it. Because I also use public files in my own project, my ".pro"-file also contains the line INCLUDEPATH += ../../publics The compiler now can take its pick: Does it follow the HEADERS += publicheader.h or the INCLUDEPATH += ../../publics It will result in the same file (an external tool makes sure the publics folder is updated), so from a compilation standpoint, it should really work both ways. But when I follow a symbol in Creator, I would rather follow HEADERS += publicheader.h than INCLUDEPATH += ../../publics because the first is part of my own project, and writeable whereas the second is a read-only copy I cannot edit. (Before you ask: There are reasons we don't simply include files from other project folder using relative paths. Using publics, we do not need to have the whole tree of sources on a local machine in order to build. Instead, we only need the single project we want, the publics files and a copy of the object files from the server. Our make process even automates this, so you can just check out a single project folder, and run make - everything else will be taken from the compile server). Kind regards Robert Schimkowitsch -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Tuesday, July 05, 2011 6:13 PM To: [email protected] Subject: Re: [Qt-creator] Follow Symbol...: How to prefer own projectsource file to include path? Hello Robert, I think I do not fully understand the question: What do you mean by "search in the own project first, and only then search the include paths and follow symbols there"? Qt Creator will try to resolve the symbol to the same one the compiler would pick. Best Regards, Tobias Hunger Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori Von: [email protected] [[email protected]]" im Auftrag von "ext Schimkowitsch Robert [[email protected]] Gesendet: Dienstag, 5. Juli 2011 14:11 Bis: [email protected] Betreff: [Qt-creator] Follow Symbol...: How to prefer own project source file to include path? How can I configure the "Follow symbol under cursor" feature in Creator (2.2.1) to search header and source files in the own project first, and only then search the include paths and follow symbols there? Kind regards Robert Schimkowitsch This message and any attachments are solely for the use of the intended recipients. They may contain privileged and/or confidential information or other information protected from disclosure. If you are not an intended recipient, you are hereby notified that you received this email in error and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system. ANDRITZ HYDRO GmbH Rechtsform/ Legal form: Gesellschaft mit beschrankter Haftung / Corporation Firmensitz/ Registered seat: Wien Firmenbuchgericht/ Court of registry: Handelsgericht Wien Firmenbuchnummer/ Company registration: FN 61833 g DVR: 0605077 UID-Nr.: ATU14756806 Thank You. _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator ##################################################################################### This message and any attachments are solely for the use of the intended recipients. They may contain privileged and/or confidential information or other information protected from disclosure. If you are not an intended recipient, you are hereby notified that you received this email in error and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system. Thank You. ANDRITZ HYDRO GmbH Rechtsform/ Legal form: Gesellschaft mit beschränkter Haftung / Corporation Firmensitz/ Registered seat: Wien Firmenbuchgericht/ Court of registry: Handelsgericht Wien Firmenbuchnummer/ Company registration: FN 61833 g DVR: 0605077 UID-Nr.: ATU14756806 ##################################################################################### _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
