PanelSvg not reacting to themechanged()
Marco Martin
notmart at gmail.com
Sun May 18 12:03:36 CEST 2008
On Saturday 17 May 2008, Jamboarder wrote:
> So I've been attempting tackle resolving the broken
> response to theme changes and it appears to center
> around PanelSvg. Plasma::Svg updates correctly on
> themeChanged().
>
> PanelSvg is now based on Plasma:Svg but for some
> reason it does not update on themeChanged(). My C++
> inheritance fu is weak so I'm having trouble
> understanding why. When I create a new slot in
> PanelSvg that does a clearCache() and emits
> repaintNeeded(), then PanelSvg updates.
>
> Any ideas?
hmm, i kinda see the problem, but looking at the code it seems that it should
present only with themes that has multiple prefixes in them.
when the theme changes svg emits a repaintneeded
and panelsvg is connected to that with updateSizes, that deletes only the
cache of the local element, so calling clearcache on themeupdated seems
right, but emeitting another repaintneeded shouldn't be necessary uhmm..
i would do a new private slot themechanged or something like that
Cheers,
Marco Martin
More information about the Panel-devel
mailing list