[Panel-devel] Background painting bug

Petri Damsten petri.damsten at iki.fi
Mon Sep 17 14:26:34 CEST 2007


On Friday 07 September 2007 08:44:43 Aaron J. Seigo wrote:
> so if you have
> some code you could share to demonstrate a different approach, that'd be
> great =)

This class could be used as temporary solution. It only reads svg tag from the 
start and parses it with simple QRegExp. e.g.:

    SvgInfo svgInfo("/home/damu/kde4/src/testing/svginfo/clock.svg");

    kDebug() << svgInfo["width"] << "x" << svgInfo["height"];
    kDebug() << svgInfo["inkscape:version"];
    kDebug() << svgInfo["plasma:stretch-borders"];

Petri

-- 
The weak can never forgive. Forgiveness is the attribute of the strong. 
Mahatma Gandhi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svginfo.h
Type: text/x-c++hdr
Size: 969 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070917/c20eab90/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svginfo.cpp
Type: text/x-c++src
Size: 1992 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070917/c20eab90/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070917/c20eab90/attachment.pgp 


More information about the Panel-devel mailing list