[Patch:] KClipboard / klipper / kpaint bug fixes

Carsten Pfeiffer carpdjih at sp.zrz.tu-berlin.de
Mon Oct 28 23:14:16 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----

On Monday 28 October 2002 23:39, you wrote:

> Yes, QClipboard should definitively return QSting::null if it's not text.

Can you send a testcase to qt-bugs at trolltech.com about that? Thanks :)

> Ok. I'll fix this and send the patches one by one again.

Thanks!

> Sure, the functionality is still there. It shouldn't have changed in my
> implementation.

Ok. I thought it would be dependend on the synchronization configuration now.

> > Regarding the removal of KClipboard::MimeSource, you can get a crash when
> > you do something like clip->setText( clip->text( QClipboard::Selection ),
> > QClipboard::Clipboard ).
>
> Hmm, people doing this should be shot :-)
> Anyway, clip->text() returns a QString and thus it wouldn't crash.

Well, it does, I tried that. This happened when klipper read the clipboard 
contents after the application owning it exited, IIRC.

> Although using something like clip->setData(
> clip->data(QClipboard::Selection) ) might give problems.

KClipboard::MimeSource certainly cures those problems.

Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----

iQEVAwUBPb3EyKWgYMJuwmZtAQFVYAf/eyPwlCLjdVdDfmYFBAHPwQGnNUGhtw/y
tw1gHIzX3flUPYTcpfeJbD+Ujbb/rOtZ+CmNE65INL2BMen9CYgEMqYcYsYWUqfK
1UJiaxJvL+0ObfXltygER5yMQ4N+n4BJVOb9sXPXbRK9Us9eskStSC6Stt7agmCo
iKPqkSG4MUq6UMmCGz7sqrajF9/M+/hatDWzeDY+5iuE0XPG1v+WLmUDnBif4oj+
Th044yBQqsODXXDz1YG8kKfbu38koPx/lQKuOCjV2eVtdDhS0o+CJjo1M3Vyb00+
UNElq3KjBrjIQsy4i90llZhHJU+g6jjlYFzmRnz9wwcyc28ifMNLPw==
=tsdT
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list