styles docker

2011-05-12 Thread Pierre Stirnweiss
i am trying to debug the styles docker in words. when clicked it should
display a list of available styles, written with the corresponding character
style. This preview is actually a pixmap generated as follow: a text
document is used to apply the character style on the name of the style. This
document is laid out (using the calligra layout engine). then the text
document is painted on a pixmap. This pixmap is returned to the ListView (as
decoration role). Before the new layout engine, this was working fine. Now
it is not.
I am trying to pinpoint where exacltly the problem lies. My question is as
follow: is there a way to save or display this pixmap (in the sense of
kDebug() << variable; allows you to look at values,...) so i can look into
the generated pixmap?

Pierre
___
calligra-devel mailing list
calligra-devel@kde.org
https://mail.kde.org/mailman/listinfo/calligra-devel


Re: styles docker

2011-05-12 Thread C. Boemann
On Thursday 12 May 2011 13:58:23 Pierre Stirnweiss wrote:
> i am trying to debug the styles docker in words. when clicked it should
> display a list of available styles, written with the corresponding
> character style. This preview is actually a pixmap generated as follow: a
> text document is used to apply the character style on the name of the
> style. This document is laid out (using the calligra layout engine). then
> the text document is painted on a pixmap. This pixmap is returned to the
> ListView (as decoration role). Before the new layout engine, this was
> working fine. Now it is not.
> I am trying to pinpoint where exacltly the problem lies. My question is as
> follow: is there a way to save or display this pixmap (in the sense of
> kDebug() << variable; allows you to look at values,...) so i can look into
> the generated pixmap?
> 
> Pierre
Yes convert to QImage and save from there
___
calligra-devel mailing list
calligra-devel@kde.org
https://mail.kde.org/mailman/listinfo/calligra-devel