From d8cc8bdfa7fa624a526d5aa1626974e1444cb799 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 27 May 2011 19:21:21 +0000 Subject: TQt4 port k3b This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libk3b/projects/datacd/k3bfilecompilationsizehandler.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libk3b/projects/datacd/k3bfilecompilationsizehandler.cpp') diff --git a/libk3b/projects/datacd/k3bfilecompilationsizehandler.cpp b/libk3b/projects/datacd/k3bfilecompilationsizehandler.cpp index 0ddab76..7d92e7e 100644 --- a/libk3b/projects/datacd/k3bfilecompilationsizehandler.cpp +++ b/libk3b/projects/datacd/k3bfilecompilationsizehandler.cpp @@ -18,9 +18,9 @@ #include -#include -#include -#include +#include +#include +#include // TODO: remove the items from the project if the savedSize differs @@ -71,7 +71,7 @@ public: */ K3b::Msf blocks() const { return K3b::Msf( usedBlocks(savedSize) ); } - QPtrList items; + TQPtrList items; }; @@ -114,7 +114,7 @@ public: void removeFile( K3bFileItem* item, bool followSymlinks ) { InodeInfo& inodeInfo = inodeMap[item->localId(followSymlinks)]; - if( inodeInfo.items.findRef( item ) == -1 ) { + if( inodeInfo.items.tqfindRef( item ) == -1 ) { kdError() << "(K3bFileCompilationSizeHandler) " << item->localPath() << " has been removed without being added!" << endl; @@ -136,7 +136,7 @@ public: void removeSpecialItem( K3bDataItem* item ) { // special files do not have a corresponding local file // so we just substract their k3bSize - if( specialItems.findRef( item ) == -1 ) { + if( specialItems.tqfindRef( item ) == -1 ) { kdError() << "(K3bFileCompilationSizeHandler) Special item " << item->k3bName() << " has been removed without being added!" << endl; @@ -152,12 +152,12 @@ public: /** * This maps from inodes to the number of occurrences of the inode. */ - QMap inodeMap; + TQMap inodeMap; KIO::filesize_t size; K3b::Msf blocks; - QPtrList specialItems; + TQPtrList specialItems; }; -- cgit v1.2.3