mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00

it uses the ICO image format handler which can read only image/vnd.microsoft.icon also optimized the windowsexecreator while at it to not created temporary file (which later wrestool would overwrite anyway) but rather just generate output file path via KTemporaryFile::filePath() and delete it manually when done Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
30 lines
1 KiB
C++
30 lines
1 KiB
C++
/*
|
|
windowsexecreator.h - Thumbnail Creator for Microsoft Windows Executables
|
|
|
|
Copyright (c) 2009-2010 by Pali Rohár <pali.rohar@gmail.com>
|
|
|
|
*************************************************************************
|
|
* *
|
|
* This library is free software; you can redistribute it and/or *
|
|
* modify it under the terms of the GNU General Public *
|
|
* License as published by the Free Software Foundation; either *
|
|
* version 2 of the License, or (at your option) any later version. *
|
|
* *
|
|
*************************************************************************
|
|
*/
|
|
|
|
|
|
#ifndef WINDOWS_EXE_CREATOR_H
|
|
#define WINDOWS_EXE_CREATOR_H
|
|
|
|
#include <kio/thumbcreator.h>
|
|
|
|
class WindowsExeCreator : public ThumbCreator
|
|
{
|
|
public:
|
|
WindowsExeCreator();
|
|
|
|
bool create(const QString &path, int width, int height, QImage &img) final;
|
|
};
|
|
|
|
#endif // WINDOWS_EXE_CREATOR_H
|