aboutsummaryrefslogtreecommitdiff
path: root/logic/screenshots/Screenshot.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-06-28 17:07:08 +0200
committerPetr Mrázek <peterix@gmail.com>2014-06-28 17:07:08 +0200
commite8731c5d013e67ee0153d5a49b38b0e914d14aa0 (patch)
treeab3611681ec35ea8f10aa7b9a7770c1356b3ef22 /logic/screenshots/Screenshot.cpp
parent30b1f5e5cf935689fc628e37016e650655153d00 (diff)
downloadPrismLauncher-e8731c5d013e67ee0153d5a49b38b0e914d14aa0.tar.gz
PrismLauncher-e8731c5d013e67ee0153d5a49b38b0e914d14aa0.tar.bz2
PrismLauncher-e8731c5d013e67ee0153d5a49b38b0e914d14aa0.zip
Turn screenshot management into a page.
Diffstat (limited to 'logic/screenshots/Screenshot.cpp')
-rw-r--r--logic/screenshots/Screenshot.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/logic/screenshots/Screenshot.cpp b/logic/screenshots/Screenshot.cpp
deleted file mode 100644
index 882e491f..00000000
--- a/logic/screenshots/Screenshot.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-#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;
-}