From 118d03d815a7615b9c53363218a7ac45b3f4c514 Mon Sep 17 00:00:00 2001 From: groucho Date: Wed, 07 May 2003 09:01:39 +0000 Subject: Incorporated TimWs current source tree and make it compile --- (limited to 'noncore/apps/opie-reader/StyleConsts.cpp') 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,12 +1,12 @@ -#include +#include #include "StyleConsts.h" GraphicLink::~GraphicLink() { delete graphic; } pmstore::~pmstore() { -// qDebug("Deleting image"); +//// qDebug("Deleting image"); delete graphic; } @@ -21,11 +21,6 @@ CStyle::~CStyle() } } -CStyle::CStyle(CStyle& rhs) : graphic(NULL) -{ - *this = rhs; -} - CStyle::CStyle(const CStyle& rhs) : graphic(NULL) { *this = rhs; @@ -85,7 +80,7 @@ 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) { if (graphic != NULL) { @@ -95,5 +90,5 @@ void CStyle::setPicture(QPixmap* _g, bool il, unsigned long tgt) } graphic = NULL; } - if (_g != NULL) graphic = new pmstore(_g, il, tgt); + if (_g != NULL) graphic = new pmstore(canScale, _g, il, tgt); } -- cgit v0.9.0.2