El Dilluns, 11 de juny de 2012, a les 21:27:58, Yuri Chornoivan va escriure:
> написане Mon, 11 Jun 2012 21:19:06 +0300, Albert Astals Cid
>
> <
aacid@...>:
> > El Dilluns, 11 de juny de 2012, a les 13:22:57, Yuri Chornoivan va
> >
> > escriure:
> >> Hi!
> >>
> >> I know that playground is a play ground, but just one question that
> >> itches
> >> me...
> >>
> >> kregexpeditorprivate.cpp:63:
> >> _userRegExps = new UserDefinedRegExps( /*verArea1*/this,
> >>
> >> /*"KRegExpEditorPrivate::userRegExps"*/qPrintable(i18n("Compound regular
> >> expression:")) );
> >>
> >> The result is as follows (highlighted with red border):
> >>
> >>
http://dl.dropbox.com/u/55247264/theEditor1.png> >>
> >> How can this (broken localization) be fixed?
> >
> > That qPrintable looks wrong, have you tried removing it?
> >
> > Cheers,
> >
> > Albert
>
> Thanks for your help.
>
> Yes, I did. But it does not compile then.
Ok, fixed the rest of the code.
Cheers,
Albert
>
> /playground-utils/kregexpeditor/kregexpeditorprivate.cpp: In constructor
> ‘KRegExpEditorPrivate::KRegExpEditorPrivate(QWidget*)’:
> /playground-utils/kregexpeditor/kregexpeditorprivate.cpp:63:136: error: no
> matching function for call to
> ‘UserDefinedRegExps::UserDefinedRegExps(KRegExpEditorPrivate* const,
> QString)’
> /playground-utils/kregexpeditor/kregexpeditorprivate.cpp:63:136: note:
> candidates are:
> /playground-utils/kregexpeditor/userdefinedregexps.h:35:12: note:
> UserDefinedRegExps::UserDefinedRegExps(QWidget*, const char*)
> /playground-utils/kregexpeditor/userdefinedregexps.h:35:12: note: no
> known conversion for argument 2 from ‘QString’ to ‘const char*’
> /playground-utils/kregexpeditor/userdefinedregexps.h:30:7: note:
> UserDefinedRegExps::UserDefinedRegExps(const UserDefinedRegExps&)
> /playground-utils/kregexpeditor/userdefinedregexps.h:30:7: note:
> candidate expects 1 argument, 2 provided