mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
kioslave: do not convert the image from imagethumbnail
if the depth is required to be 32 somewhere else then it should be converted there Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
2ce6520523
commit
c7a9f67a23
1 changed files with 1 additions and 6 deletions
|
@ -58,19 +58,14 @@ bool ImageCreator::create(const QString &path, int width, int height, QImage &im
|
|||
exiv.rotateImage(img);
|
||||
}
|
||||
|
||||
if (img.depth() != 32) {
|
||||
img = img.convertToFormat(img.hasAlphaChannel() ? QImage::Format_ARGB32 : QImage::Format_RGB32);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
ThumbCreator::Flags ImageCreator::flags() const
|
||||
{
|
||||
return None;
|
||||
return ThumbCreator::None;
|
||||
}
|
||||
|
||||
|
||||
QWidget *ImageCreator::createConfigurationWidget()
|
||||
{
|
||||
QCheckBox *rotateCheckBox = new QCheckBox(i18nc("@option:check", "Rotate the image automatically"));
|
||||
|
|
Loading…
Add table
Reference in a new issue