summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/StyleConsts.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-reader/StyleConsts.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/StyleConsts.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/noncore/apps/opie-reader/StyleConsts.cpp b/noncore/apps/opie-reader/StyleConsts.cpp
index e111dbd..9fb56b7 100644
--- a/noncore/apps/opie-reader/StyleConsts.cpp
+++ b/noncore/apps/opie-reader/StyleConsts.cpp
@@ -1,3 +1,3 @@
-#include <qpixmap.h>
+#include <qimage.h>
#include "StyleConsts.h"
@@ -8,3 +8,3 @@ pmstore::~pmstore()
{
-// qDebug("Deleting image");
+//// qDebug("Deleting image");
delete graphic;
@@ -23,7 +23,2 @@ CStyle::~CStyle()
-CStyle::CStyle(CStyle& rhs) : graphic(NULL)
-{
- *this = rhs;
-}
-
CStyle::CStyle(const CStyle& rhs) : graphic(NULL)
@@ -87,3 +82,3 @@ void CStyle::unset()
-void CStyle::setPicture(QPixmap* _g, bool il, unsigned long tgt)
+void CStyle::setPicture(bool canScale, QImage* _g, bool il, unsigned long tgt)
{
@@ -97,3 +92,3 @@ void CStyle::setPicture(QPixmap* _g, bool il, unsigned long tgt)
}
- if (_g != NULL) graphic = new pmstore(_g, il, tgt);
+ if (_g != NULL) graphic = new pmstore(canScale, _g, il, tgt);
}