[Qt-creator] "Add Getters and Setters" in Qt Creator
Eike Ziller
eike.ziller at nokia.com
Mon Feb 8 10:33:18 CET 2010
On Feb 6, 2010, at 1:53 AM, ext John Bull wrote:
> Qt is great but Qt creator has a long way to go. I'd rather use qt integrated in eclipse (but I can't seem to get the darn thing to work.)
>
> ctrl+shift+R doesn't equal refactoring.
Of course "Renaming" doesn't equal refactoring (though it's one of the heavier used ones).
> It renames (within a scope!).
That's the right thing to do, isn't it? E.g. method scope for local variables, class scope for class members, global scope for class names, etc.
> Refactoring goes way further than that, class name, configuration etc and within the project scope!
>
> It's annoying to manually go through the src to rename classes.
Please note that Qt Creator does only take files into account that are known to it, e.g. in case of source files, they must be mentioned in the loaded project. (What project type are you using?)
If ctrl+shift+R still doesn't do "the right thing" for you, best would be to report the case on bugreports.qt.nokia.com, preferably with a reproducible example, so we can investigate and fix it.
> proper = eclipse style.
>
> By the way, someone pressing ctrl+shift+R (most likely) needs a new name, and he's not just about to add a suffix to the old name.
What makes you think that you can only add a suffix?
Br, Eike
> JB
>
> On Thu, Feb 4, 2010 at 10:30 AM, Eike Ziller <eike.ziller at nokia.com> wrote:
> Hi,
>
> On Feb 4, 2010, at 1:40 AM, ext John Bull wrote:
>
> > And proper refactoring(/renaming) too?
>
> Ah, define "proper". With Qt Creator 1.3 you can get quite some way with ctrl+shift+R (Rename Symbol) and ctrl+shift+U (Find Usages). See the context menu of the code editor.
>
> > JB
> > On Thu, Feb 4, 2010 at 12:24 AM, Jefferson Bandeira <jbsilva at ufrj.br> wrote:
> > Hello guys =)
> > Is there any work currently going on to add a functionality like this to Qt Creator, like the one in eclipse?
> > --
> > Jefferson Bandeira
> > Undergraduating in Computer Science at UFRJ
> >
> >
> > _______________________________________________
> > Qt-creator mailing list
> > Qt-creator at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-creator
> >
> >
> > <ATT00001..txt>
>
> --
> Eike Ziller
> 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
>
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
> <ATT00001..txt>
--
Eike Ziller
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
More information about the Qt-creator-old
mailing list