blob: 882e491ff45828c4a10c9f1fde11178bf049c8ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "Screenshot.h"
#include <QImage>
#include <QIcon>
QIcon ScreenShot::getImage()
{
if(!imageloaded)
{
QImage image(file);
QImage thumbnail = image.scaledToWidth(256, Qt::SmoothTransformation);
m_image = QIcon(QPixmap::fromImage(thumbnail));
imageloaded = true;
}
return m_image;
}
|