[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: kdebase/kioslave/thumbnail
From: Mickael Marchand <marchand () kde ! org>
Date: 2003-08-24 12:25:10
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le Sunday 24 August 2003 12:00, Rob Buis a écrit :
> CVS commit by buis:
>
> <wildfox> use the iconengine for svg previews.
>
>
> A configure.in.in 1.1
> M +16 -1 picturecreator.cpp 1.5
>
>
> --- kdebase/kioslave/thumbnail/picturecreator.cpp #1.4:1.5
> @@ -20,4 +20,5 @@
>
>
> +#include <config.h>
>
> #include <qpicture.h>
> @@ -27,4 +28,5 @@
>
> #include "picturecreator.h"
> +#include <ksvgiconengine.h>
this file is missing (breaks compilation)
cheers,
Mik
>
> extern "C"
> @@ -38,4 +40,16 @@ extern "C"
> bool PictureCreator::create(const QString &path, int width, int height,
> QImage &img) {
> +#ifdef HAVE_LIBART
> + QImage *result = 0;
> + KSVGIconEngine engine;
> + if(engine.load(width, height, path))
> + {
> + result = engine.image();
> + img = result->copy();
> + }
> +
> + delete result;
> + return result != 0;
> +#else
> QPicture pict;
> if ( !pict.load(path,"svg") )
> @@ -77,4 +91,5 @@ bool PictureCreator::create(const QStrin
> img = pix.convertToImage();
> return true;
> +#endif
> }
- --
KVim Maintainer, http://freehackers.org/kvim
YZis Editor Project, http://www.yzis.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/SK68yOYzc4nQ8j0RAgskAJwKSD93GxMt+aKF6gA5Q3NaK0wnZgCgibgI
v49DL764+mgwAGyYaxYp0SM=
=CrV9
-----END PGP SIGNATURE-----
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic