diff options
Diffstat (limited to 'kipi-plugins/printwizard/tphoto.cpp')
-rw-r--r-- | kipi-plugins/printwizard/tphoto.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kipi-plugins/printwizard/tphoto.cpp b/kipi-plugins/printwizard/tphoto.cpp index f81a53b..f0e766d 100644 --- a/kipi-plugins/printwizard/tphoto.cpp +++ b/kipi-plugins/printwizard/tphoto.cpp @@ -16,15 +16,15 @@ * * ***************************************************************************/ -// Qt includes. +// TQt includes. -#include <qpainter.h> -#include <qdir.h> -#include <qmessagebox.h> -#include <qdragobject.h> -#include <qstringlist.h> -#include <qurl.h> -#include <qstrlist.h> +#include <tqpainter.h> +#include <tqdir.h> +#include <tqmessagebox.h> +#include <tqdragobject.h> +#include <tqstringlist.h> +#include <tqurl.h> +#include <tqstrlist.h> // KDE includes. @@ -56,7 +56,7 @@ namespace KIPIPrintWizardPlugin TPhoto::TPhoto(int thumbnailSize) { m_size = 0; - cropRegion = QRect(-1, -1, -1, -1); + cropRegion = TQRect(-1, -1, -1, -1); rotation = 0; copies = 1; @@ -85,34 +85,34 @@ void TPhoto::loadCache() delete m_thumbnail; - QImage photo = loadPhoto(); + TQImage photo = loadPhoto(); - m_thumbnail = new QPixmap(QImage( photo.scale(m_thumbnailSize, m_thumbnailSize, QImage::ScaleMin) )); + m_thumbnail = new TQPixmap(TQImage( photo.scale(m_thumbnailSize, m_thumbnailSize, TQ_ScaleMin) )); if (m_size) delete m_size; - m_size = new QSize(photo.width(), photo.height()); + m_size = new TQSize(photo.width(), photo.height()); } -QPixmap & TPhoto::thumbnail() +TQPixmap & TPhoto::thumbnail() { if (!m_thumbnail) loadCache(); return *m_thumbnail; } -QImage TPhoto::loadPhoto() +TQImage TPhoto::loadPhoto() { - QImage photo; + TQImage photo; // Check if RAW file. #if KDCRAW_VERSION < 0x000106 - QString rawFilesExt(KDcrawIface::DcrawBinary::instance()->rawFiles()); + TQString rawFilesExt(KDcrawIface::DcrawBinary::instance()->rawFiles()); #else - QString rawFilesExt(KDcrawIface::KDcraw::rawFiles()); + TQString rawFilesExt(KDcrawIface::KDcraw::rawFiles()); #endif - QFileInfo fileInfo(filename.path()); - if (rawFilesExt.upper().contains( fileInfo.extension(false).upper() )) + TQFileInfo fileInfo(filename.path()); + if (rawFilesExt.upper().tqcontains( fileInfo.extension(false).upper() )) KDcrawIface::KDcraw::loadDcrawPreview(photo, filename.path()); else photo.load(filename.path()); // PENDING(blackie) handle URL @@ -120,7 +120,7 @@ QImage TPhoto::loadPhoto() return photo; } -QSize & TPhoto::size() // private +TQSize & TPhoto::size() // private { if (m_size == 0) loadCache(); |