2009/10/19 Thiago Macieira <[email protected]>

> Em Segunda-feira 19 Outubro 2009, às 11:56:10, você escreveu:
> > I'm not sure if this was introduced with 4.6, but it seems that
> >  Qt::escape() is defined in qtextdocument.h instead of qtnamespace.h.
>
> It's always been there, since Qt 4.0 at least.
>
> We can't move a function across library boundaries. We can introduce a
> similar
> function in QtCore only.
>

That's what I meant.

Maybe move the effective code to QtCore and (correct me if I'm wrong)
convert the function in QtGui to a wrapper that calls the code in QtCore,
since QtGui depends on QtCore, anyway. That way there won't be any
redundancy, at least code-wise and would remove the need to link against
QtGui.

I browsed through the code a little, and it seems that qprimitives_p.h also
mentions this issue and they re-implemented escape() (although a little
differently).



-- 
Best regards,
Bastian Bense
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to