Troubles with moveBy(...) and emit appletTransformedItself();

Aaron J. Seigo aseigo at kde.org
Sun Mar 22 23:21:25 CET 2009


On Sunday 22 March 2009, Antonio Vinci wrote:
> I used moveBy() to do the trick, but I don't understand why it doesn't
> work if I uncomment emit appletTransformedItself();

another note on this: it won't work in all Containments. it is the containment 
that is responsible for keeping things in order, not the applet itself.

that said, the movement should be inside the if (location() == 
Plasma::Floating) { conditional. it's also the kind of code that really needs 
a comment to explain what it's doing. i had to stare at it for a moment to 
figure out what the various lines were trying to do :)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090322/a82bde70/attachment-0001.sig 


More information about the Plasma-devel mailing list