[Interest] QT Creator consistency
yves.maurischat at basyskom.com
Thu Dec 8 09:20:10 CET 2022
On 05.12.22 16:48, Thiago Macieira wrote:
> On Monday, 5 December 2022 01:23:06 PST Christian Kandeler via Interest wrote:
>> On 12/5/22 09:52, Yves Maurischat wrote:
>>> - 'Follow symbol under cursor' for signals in a *.cpp does not jump to the
>>> header where the signal was declared but to the *.moc files instead
>> I cannot reproduce that. Please file a bug report with an example project.
> I can. The very first signal I tried showed it. I opened qiodevice.cpp and
> searched for "emit ". There's only one.
> But this is not *wrong*. Signals are functions and they have a body. However,
> if Qt Creator can be made to give preference to the declaration in case
> definition is in a generated file, it might improve UX.
Yeah, it would be nice to have an option to prioritize whether the
implementation should be preferred to the declaration or always the
declaration in the headers.
>>> - 'Refactoring -> Rename Symbol under cursor' does not include headers
>>> anymore, instead you have to check them on in the search pane,
>> You probably forgot to add you headers in the project file, so they are
>> not considered part of the project.
> I've seen the refactor example not tick some boxes but didn't try to discern a
> pattern on why some weren't checked. I do remember it being correct for my
> purposes, though.
But the symbols are found even in non-project files, so those files
could be considered to maybe be part of the project anyway because they
are in a subdirectory or included as headers in the *.cpp files. So I
would like to have an option like "Include non-project files in
subdirectories" or "Always include header files in subdirectories" or
something like that, and then there would at least be a way to choose
which behavior is preferred.
More information about the Interest