Re: [Interest] QT Creator consistency

2022-12-08 Thread Yves Maurischat


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.


___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QT Creator consistency

2022-12-05 Thread Thiago Macieira
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.

> > - '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.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering



___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QT Creator consistency

2022-12-05 Thread Yves Maurischat
On 05.12.22 10:23, 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.
>
>> - '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.

Good point, that might also be the source of the problem above.


>
>> - running a test and then trying to run the same test again using 
>> "Run test under cursor" chrashes QtCreator
> Again, you should add a bug report for that.

I'll try to create a minimal example.


>
>
> Christian
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QT Creator consistency

2022-12-05 Thread Christian Kandeler via Interest

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.


- '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.




- running a test and then trying to run the same test again using "Run test under 
cursor" chrashes QtCreator

Again, you should add a bug report for that.


Christian

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QT Creator consistency

2022-12-05 Thread Yves Maurischat
I also noticed a few things:

- '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

- 'Refactoring -> Rename Symbol under cursor' does not include headers anymore, 
instead you have to check them on in the search pane, which is infuriating if 
you try to refactor large chunks of a software and have to click the small 
check boxes for dozens of header files each time.

- running a test and then trying to run the same test again using "Run test 
under cursor" chrashes QtCreator

I generally have the impression that QtCreator gets many new features with each 
release, but the releases are rushed and testing is insufficient, so each new 
version contains dozens if not hundreds of new bugs. I've been using Qt and 
QtCreator for 20 years and never had that many problems with it as I do now.

Yves


On 03.12.22 01:24, Turtle Creek Software wrote:
The last few updates to QT Creator have made small changes to the user 
interface, annoyingly.

Using the latest, I weirdly kept seeing preprocessor output. Huh?  Turns out 
Follow Symbol Under Cursor moved from #2 to #3 in the right-click menu.  When 
using a command 50 times a day, one clicks by position not by reading text. 
Minor changes have big impact. If I remember right, it was somewhere else a few 
updates back, and that also required adjusting.  Was it also renamed at some 
point?

Follow Symbol Under Cursor in source files used to jump to that function in the 
header.  That stopped working a few updates ago.

The pull-down menu of function names went from alphabetical to page-order a few 
updates ago.  Sometimes it's better but sometimes not.  Being able to switch 
between would be very helpful.

We have a lot of old code that has #pragma mark -, which insets a separator in 
other IDEs.  QTC says (Unnamed Group) instead.

In general, each update becomes an adventure in figuring out how to be 
productive again.

?

Casey McDermott
TurtleSoft.com



___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QT Creator consistency

2022-12-03 Thread Elvis Stansvik
Den lör 3 dec. 2022 kl 23:02 skrev Turtle Creek Software
:
>
> It's good to have multiple ways to do common things.
>
> F2 is not great because I'm often leaned way back with right hand on mouse, 
> and with
> left hand holding drink, snack, scratching or whatever. An extra click is 
> faster then reaching to the keyboard.

I hear you man. Slowly slipping further down the chair, to the point I
cannot even reach the keyboard, is the absolute highlight of my work
day afternoon.

It's downright outrageous that the Qt Creator team dare move a menu
entry by several pixels, and then have the audacity to suggest using
the keyboard.

Frankly, that they don't include a free set of physical foot pedals
for the most common actions is just inexplicable.

Elvis

>
> BTW Follow Symbol Under Cursor does *not* go from source to header if you 
> double-clicked on the function first.
> That changed a few updates ago.  It works properly if the text is not 
> selected.  Odd.
> I probably do the double-click by habit left over from Xcode, Visual Studio 
> and/or CodeWarrior.
>
> Actually, aside from temporal consistency, there's a lot to be said for 
> consistency between development apps also.
> Casey McD
>
>
>
> On Sat, Dec 3, 2022 at 3:56 PM A. Pönitz  wrote:
>>
>> On Fri, Dec 02, 2022 at 07:24:56PM -0500, Turtle Creek Software wrote:
>> > The last few updates to QT Creator have made small changes to the user
>> > interface, annoyingly.
>> >
>> > Using the latest, I weirdly kept seeing preprocessor output. Huh?  Turns
>> > out Follow Symbol Under Cursor moved from #2 to #3 in the right-click
>> > menu.  When using a command 50 times a day, one clicks by position not by
>> > reading text.
>> > [...]
>>
>> You could press  instead of positioning the mouse over the symbol,
>> right-click, move the mouse to entry #2 or #3, and click again to
>> trigger the action/.
>>
>>
>> > Minor changes have big impact.
>>
>> Indeed.
>>
>> Andre'
>>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QT Creator consistency

2022-12-03 Thread Turtle Creek Software
It's good to have multiple ways to do common things.

F2 is not great because I'm often leaned way back with right hand on mouse,
and with
left hand holding drink, snack, scratching or whatever. An extra click is
faster then reaching to the keyboard.

BTW Follow Symbol Under Cursor does *not* go from source to header if you
double-clicked on the function first.
That changed a few updates ago.  It works properly if the text is not
selected.  Odd.
I probably do the double-click by habit left over from Xcode, Visual Studio
and/or CodeWarrior.

Actually, aside from temporal consistency, there's a lot to be said for
consistency between development apps also.
Casey McD



On Sat, Dec 3, 2022 at 3:56 PM A. Pönitz  wrote:

> On Fri, Dec 02, 2022 at 07:24:56PM -0500, Turtle Creek Software wrote:
> > The last few updates to QT Creator have made small changes to the user
> > interface, annoyingly.
> >
> > Using the latest, I weirdly kept seeing preprocessor output. Huh?  Turns
> > out Follow Symbol Under Cursor moved from #2 to #3 in the right-click
> > menu.  When using a command 50 times a day, one clicks by position not by
> > reading text.
> > [...]
>
> You could press  instead of positioning the mouse over the symbol,
> right-click, move the mouse to entry #2 or #3, and click again to
> trigger the action/.
>
>
> > Minor changes have big impact.
>
> Indeed.
>
> Andre'
>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QT Creator consistency

2022-12-02 Thread Thiago Macieira
On Friday, 2 December 2022 16:24:56 PST Turtle Creek Software wrote:
> Using the latest, I weirdly kept seeing preprocessor output. Huh?  Turns
> out Follow Symbol Under Cursor moved from #2 to #3 in the right-click
> menu.

You can Ctrl+Click or use F2. That's faster than the right-click menu.

> Follow Symbol Under Cursor in source files used to jump to that function in
> the header.  That stopped working a few updates ago.

It jumps to the definition of the function, if it's found it, otherwise to the 
declaration in the header. It goes between those two if you're in either.

Do note that sometimes it hasn't indexed the .cpp file so it will jump to the 
header. This happens sometimes if the .cpp file isn't open in the editor.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering



___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] QT Creator consistency

2022-12-02 Thread Turtle Creek Software
The last few updates to QT Creator have made small changes to the user
interface, annoyingly.

Using the latest, I weirdly kept seeing preprocessor output. Huh?  Turns
out Follow Symbol Under Cursor moved from #2 to #3 in the right-click
menu.  When using a command 50 times a day, one clicks by position not by
reading text. Minor changes have big impact. If I remember right, it was
somewhere else a few updates back, and that also required adjusting.  Was
it also renamed at some point?

Follow Symbol Under Cursor in source files used to jump to that function in
the header.  That stopped working a few updates ago.

The pull-down menu of function names went from alphabetical to page-order a
few updates ago.  Sometimes it's better but sometimes not.  Being able to
switch between would be very helpful.

We have a lot of old code that has #pragma mark -, which insets a separator
in other IDEs.  QTC says (Unnamed Group) instead.

In general, each update becomes an adventure in figuring out how to be
productive again.

?

Casey McDermott
TurtleSoft.com
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest