Generated header files for Qt4 .ui files with cmake
Nicolas Goutte
nicolasg at snafu.de
Sun Apr 30 12:57:13 BST 2006
On Sunday 30 April 2006 12:43, Alexander Neundorf wrote:
> On Sunday 30 April 2006 11:30, Nicolas Goutte wrote:
> > Before I forget again to discuss this subject (for the umpteenth time), I
> > write quickly this short email.
> >
> > In Qt4's .ui files, the user-visible strings are now in the header files
> > and not in the cpp file anymore. Therefore the -tr tr2i18n parameter must
> > be given to uic when generating the .h file.
>
> cmake currently does:
> uic -tr tr2i18n blah.ui blah.h
>
> Doesn't this do what you mention ?
> What should it do ?
Does it do
sed -e 's/${UIC_TR}(\"\")/QString()/g;s/${UIC_TR}(\"\", 0)/QString()/g'
on the generated file too (where ${UIC_TR} is tr2i18n )?
>
> Bye
> Alex
More information about the kde-core-devel
mailing list