[prev in list] [next in list] [prev in thread] [next in thread]
List: klik-devel
Subject: [klik-devel] [klikclient commit] r851 -
From: codesite-noreply () google ! com
Date: 2008-01-20 18:06:01
Message-ID: 00163646d8f204442b3a6ea6349d26c () google ! com
[Download RAW message or body]
Author: lionel.tricon
Date: Sun Jan 20 10:05:32 2008
New Revision: 851
Modified:
trunk/client/trunk/cmg_kthumbnail/src/isofscreator.cpp
Log:
> Just one idea, would it be possible that the icons are resized to the
> size from the KDE settings?
done even the result is not really nice in my humble opinion.
Modified: trunk/client/trunk/cmg_kthumbnail/src/isofscreator.cpp
==============================================================================
--- trunk/client/trunk/cmg_kthumbnail/src/isofscreator.cpp (original)
+++ trunk/client/trunk/cmg_kthumbnail/src/isofscreator.cpp Sun Jan 20
10:05:32 2008
@@ -148,6 +148,7 @@
)
{
QString v_image = "/.DirIcon";
+ QImage v_img;
// initialize the CIsoUtl class with the cmg file
_isoUtl = new CIsoUtl(p_path.latin1());
@@ -167,13 +168,14 @@
// load the image into the QImage buffer
if (_buffer == NULL) return false;
- if (!p_img.loadFromData((const uchar *)_buffer,_size))
+ if (!v_img.loadFromData((const uchar *)_buffer,_size))
{
free(_buffer);
_buffer = NULL;
return false;
}
- if (p_img.depth() != 32) p_img=p_img.convertDepth(32);
+ if (v_img.depth() != 32) v_img=v_img.convertDepth(32);
+ p_img = v_img.smoothScale(p_width, p_height);
free(_buffer);
return true;
_______________________________________________
klik-devel mailing list
klik-devel@kde.org
https://mail.kde.org/mailman/listinfo/klik-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic