[Kde-pim] KNotes issues

Reinhold Kainhofer reinhold at kainhofer.com
Wed Aug 1 01:58:21 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Mittwoch, 1. August 2007 schrieb Allen Winter:
> Wuestion.. why can't we simply use
> if (  Qt::mightBeRichText( journal()->description() ) ) ...
>
> Then we don't have to store the custom property.
>
> Qt::mightBeRichtText() simply looks for any supported tag
> before it sees a newline.

Imagine a journal entry like:
- -) Fixed that bad bug with <td>

Won't this text-only entry be falsely detected as rich text by 
Qt::mightBeRichText? Heuristics always have cases where they break... 

I admit, currently it breaks badly, too, since korganizer simply relies on 
QTextEditor (which uses mightBeRichText...). Simply try to add a journal with 
the contents:
"test: <ul><li> is completely broken in flopzilla, version -1, but </ul> works 
just fine!"


Cheers,
Reinhold
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: reinhold at kainhofer.com, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGr9qvTqjEwhXvPN0RAkiTAJ9TRmq1fMwV/PbJbFqZeE+3KQRlNACdEhKZ
DzaWlrdff1HTDirzGDj6U9M=
=Yv4y
-----END PGP SIGNATURE-----
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list