summaryrefslogtreecommitdiffstats
path: root/kooka/kookaimage.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kooka/kookaimage.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kooka/kookaimage.cpp')
-rw-r--r--kooka/kookaimage.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kooka/kookaimage.cpp b/kooka/kookaimage.cpp
index 5857440a..a89a97cb 100644
--- a/kooka/kookaimage.cpp
+++ b/kooka/kookaimage.cpp
@@ -19,8 +19,8 @@
* including the source code for KADMOS in the source distribution. *
*
* As a special exception, permission is given to link this program *
- * with any edition of Qt, and distribute the resulting executable, *
- * without including the source code for Qt in the source distribution. *
+ * with any edition of TQt, and distribute the resulting executable, *
+ * without including the source code for TQt in the source distribution. *
* *
***************************************************************************/
@@ -167,7 +167,7 @@ bool KookaImage::loadFromUrl( const KURL& url )
#endif
if( !haveTiff )
{
- /* Qt can only read one image */
+ /* TQt can only read one image */
ret = load(filename);
if( ret )
{
@@ -205,15 +205,15 @@ void KookaImage::extractNow()
{
kdDebug(28000) << "extracting a subimage number " << m_subNo << endl;
- KookaImage *parent = parentImage();
+ KookaImage *tqparent = tqparentImage();
- if( parent )
+ if( tqparent )
{
- loadTiffDir( parent->localFileName(), m_subNo );
+ loadTiffDir( tqparent->localFileName(), m_subNo );
}
else
{
- kdDebug(28000) << "ERR: No parent defined - can not laod subimage" << endl;
+ kdDebug(28000) << "ERR: No tqparent defined - can not laod subimage" << endl;
}
}
@@ -300,7 +300,7 @@ bool KookaImage::loadTiffDir( const TQString& filename, int no )
float yScalefactor = xReso / yReso;
kdDebug(28000) << "Different resolution x/y, rescaling with factor " << yScalefactor << endl;
/* rescale the image */
- *this = smoothScale( imgWidth, int(imgHeight*yScalefactor), TQImage::ScaleFree );
+ *this = smoothScale( imgWidth, int(imgHeight*yScalefactor), TQ_ScaleFree );
}
else
{
@@ -308,7 +308,7 @@ bool KookaImage::loadTiffDir( const TQString& filename, int no )
float scalefactor = yReso / xReso;
kdDebug(28000) << "Different resolution x/y, rescaling x with factor " << scalefactor << endl;
/* rescale the image */
- *this = smoothScale( int(imgWidth*scalefactor), imgHeight, TQImage::ScaleFree );
+ *this = smoothScale( int(imgWidth*scalefactor), imgHeight, TQ_ScaleFree );
}
}
@@ -328,7 +328,7 @@ KookaImage::~KookaImage()
}
-KookaImage* KookaImage::parentImage() const
+KookaImage* KookaImage::tqparentImage() const
{
return( m_parent );
}