summaryrefslogtreecommitdiffstats
path: root/kooka/kookaimage.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kooka/kookaimage.h
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kooka/kookaimage.h')
-rw-r--r--kooka/kookaimage.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/kooka/kookaimage.h b/kooka/kookaimage.h
index 84018d4d..c75c2dae 100644
--- a/kooka/kookaimage.h
+++ b/kooka/kookaimage.h
@@ -29,10 +29,10 @@
#ifndef KOOKAIMAGE_H
#define KOOKAIMAGE_H
#include <kurl.h>
-#include <qimage.h>
-#include <qptrlist.h>
-#include <qvaluevector.h>
-#include <qrect.h>
+#include <tqimage.h>
+#include <tqptrlist.h>
+#include <tqvaluevector.h>
+#include <tqrect.h>
#include <kfilemetainfo.h>
@@ -41,7 +41,7 @@ class KFileItem;
/**
* @author Klaas Freitag
*
- * class that represents an image, very much as QImage. But this one can contain
+ * class that represents an image, very much as TQImage. But this one can contain
* multiple pages.
*/
@@ -58,10 +58,10 @@ public:
* @param p is the parent image.
*/
KookaImage( int subNo, KookaImage *p );
- KookaImage( const QImage& img );
+ KookaImage( const TQImage& img );
KookaImage& operator=(const KookaImage& );
- KookaImage& operator=(const QImage& );
+ KookaImage& operator=(const TQImage& );
/**
* load an image from a KURL. This method reads the entire file and sets
* the values for subimage count.
@@ -91,7 +91,7 @@ public:
void extractNow();
KURL url() const;
- QString localFileName( ) const;
+ TQString localFileName( ) const;
/**
* Set and get the KFileItem of the image. Note that the KFileItem pointer returned
@@ -124,15 +124,15 @@ public:
* The parameters rows and cols contain the number of rows and cols after
* tiling. If both are one, the image is smaller than maxSize, thus the
* left-top tile is index 1,1.
- * Use getTile() to read the QRect list.
+ * Use getTile() to read the TQRect list.
*/
- int cutToTiles( const QSize maxSize, int& rows, int& cols, TileMode mode = MaxCut );
+ int cutToTiles( const TQSize maxSize, int& rows, int& cols, TileMode mode = MaxCut );
/**
* read tiles from the tile list. The image needs to be tiled by method
* cutToTiles before.
*/
- QRect getTileRect( int rowPos, int colPos ) const;
+ TQRect getTileRect( int rowPos, int colPos ) const;
/**
* retrieve the sub number of this image.
@@ -141,7 +141,7 @@ public:
private:
int m_subImages;
- bool loadTiffDir( const QString&, int );
+ bool loadTiffDir( const TQString&, int );
/* if subNo is 0, the image is the one and only. If it is larger than 0, the
* parent contains the filename */
@@ -154,12 +154,12 @@ private:
KFileItem *m_fileItem;
bool m_fileBound;
- QValueVector<QRect> m_tileVector;
+ TQValueVector<TQRect> m_tileVector;
int m_tileCols; /* number of tile columns */
};
-class KookaImageList: public QPtrList<KookaImage>
+class KookaImageList: public TQPtrList<KookaImage>
{
public:
KookaImageList() {}