diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
commit | bf7f88413be3831a9372d323d02fc0335b9f9188 (patch) | |
tree | 516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/gvcore/documentanimatedloadedimpl.cpp | |
parent | e238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff) | |
download | gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip |
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvcore/documentanimatedloadedimpl.cpp')
-rw-r--r-- | src/gvcore/documentanimatedloadedimpl.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gvcore/documentanimatedloadedimpl.cpp b/src/gvcore/documentanimatedloadedimpl.cpp index aaaed2f..db4e72c 100644 --- a/src/gvcore/documentanimatedloadedimpl.cpp +++ b/src/gvcore/documentanimatedloadedimpl.cpp @@ -1,7 +1,7 @@ // vim: set tabstop=4 shiftwidth=4 noexpandtab /* Gwenview - A simple image viewer for KDE -Copyright 2000-2004 Aur�lien G�teau +Copyright 2000-2004 Aur�lien G�teau This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -21,9 +21,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "documentanimatedloadedimpl.moc" -// Qt -#include <qstring.h> -#include <qtimer.h> +// TQt +#include <tqstring.h> +#include <tqtimer.h> // KDE #include <kdebug.h> @@ -45,7 +45,7 @@ class DocumentAnimatedLoadedImplPrivate { public: ImageFrames mFrames; int mCurrentFrame; - QTimer mFrameTimer; + TQTimer mFrameTimer; }; @@ -55,7 +55,7 @@ DocumentAnimatedLoadedImpl::DocumentAnimatedLoadedImpl(Document* document, const d=new DocumentAnimatedLoadedImplPrivate; d->mFrames = frames; d->mCurrentFrame = -1; - connect( &d->mFrameTimer, SIGNAL( timeout()), SLOT( nextFrame())); + connect( &d->mFrameTimer, TQT_SIGNAL( timeout()), TQT_SLOT( nextFrame())); } void DocumentAnimatedLoadedImpl::init() { @@ -66,7 +66,7 @@ void DocumentAnimatedLoadedImpl::init() { void DocumentAnimatedLoadedImpl::nextFrame() { ++d->mCurrentFrame; if( d->mCurrentFrame == int( d->mFrames.count())) d->mCurrentFrame = 0; - d->mFrameTimer.start( QMAX( 10, d->mFrames[ d->mCurrentFrame ].delay )); + d->mFrameTimer.start( TQMAX( 10, d->mFrames[ d->mCurrentFrame ].delay )); // NOTE! If this ever gets changed to already animate the picture while it's still // loading, with MNG the frame delay gets announced only after the frame is ready. // See ImageLoader::frameDone() . @@ -90,7 +90,7 @@ void DocumentAnimatedLoadedImpl::transform(ImageUtils::Orientation orientation) } -QString DocumentAnimatedLoadedImpl::localSave(QFile* /*file*/, const QCString& /*format*/) const { +TQString DocumentAnimatedLoadedImpl::localSave(TQFile* /*file*/, const TQCString& /*format*/) const { return i18n("Sorry, cannot save animated images."); } |