Created attachment 49262 [details]
my Tux eyes source code (kdevlop 4 project)
Version: unspecified (using Devel)
When I build and install my Tux_Eyes plasmoid, it's impossible the resize it or to move it on the plasma desktop. The problem seems to come from the function startTimer used in the function Init() of the applet.
Steps to Reproduce:
Install the KDE 4.5 RC2 version. Compile and install my tux Eyes plasmoid. Put the Tux Eyes plasmoid on the plasma desktop.
It's impossible to resize or move my Tux eyes plasmoid.
It's possible to resize and move my plasmoid
My plasmoid works with the KDE 4.4.3 version. Moreover I tried to code my plasmoid using a Qtimer object to do the same thing as the function startTimer but i had the same problem.
If you comment the line 51 in the file tux_eyes.cpp (the line where the function startTimer is used during the Init() function), it's possible to resize and move my plasmoid, however, my plasmoid doesn't work of course.
the bug is in the applet.
the two svg widgets are being set to the same size as the applet:
then they are being moved:
at which point they are covering a space far outside the applet (being the same size of the applet) and therefore covering other items ... like the applet handle.
(note that instead of using boundingRect() on the applet, you should probably be using contentsRect())
it used to work because SvgWidget didn't catch mouse events in 4.4; they do in 4.5.0, though i've made a change for 4.5.1 that will pass them through again if the mouse click signal is not being used on that SvgWidget.
SVN commit 1161819 by aseigo:
pass through mouse events if nobody is connected to us
M +2 -0 svgwidget.cpp
WebSVN link: http://websvn.kde.org/?view=rev&revision=1161819