Diffstat (limited to 'noncore/apps/opie-reader/StyleConsts.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/StyleConsts.cpp | 13 |
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,15 +1,15 @@ -#include <qpixmap.h> +#include <qimage.h> #include "StyleConsts.h" GraphicLink::~GraphicLink() { delete graphic; } pmstore::~pmstore() { -// qDebug("Deleting image"); +//// qDebug("Deleting image"); delete graphic; } CStyle::~CStyle() { if (graphic != NULL) @@ -18,17 +18,12 @@ CStyle::~CStyle() { delete graphic; } } } -CStyle::CStyle(CStyle& rhs) : graphic(NULL) -{ - *this = rhs; -} - CStyle::CStyle(const CStyle& rhs) : graphic(NULL) { *this = rhs; } CStyle& CStyle::operator=(const CStyle& rhs) @@ -82,18 +77,18 @@ void CStyle::unset() delete graphic; } graphic = NULL; } } -void CStyle::setPicture(QPixmap* _g, bool il, unsigned long tgt) +void CStyle::setPicture(bool canScale, QImage* _g, bool il, unsigned long tgt) { if (graphic != NULL) { if (--(graphic->count) == 0) { delete graphic; } graphic = NULL; } - if (_g != NULL) graphic = new pmstore(_g, il, tgt); + if (_g != NULL) graphic = new pmstore(canScale, _g, il, tgt); } |