styles docker
C. Boemann
cbo at boemann.dk
Thu May 12 13:02:22 BST 2011
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
More information about the calligra-devel
mailing list