summaryrefslogtreecommitdiffstats
path: root/kmail/messagecopyhelper.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/messagecopyhelper.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/messagecopyhelper.cpp')
-rw-r--r--kmail/messagecopyhelper.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kmail/messagecopyhelper.cpp b/kmail/messagecopyhelper.cpp
index 2a36c53a7..e0a27fc35 100644
--- a/kmail/messagecopyhelper.cpp
+++ b/kmail/messagecopyhelper.cpp
@@ -26,18 +26,18 @@
using namespace KMail;
using namespace KPIM;
-MessageCopyHelper::MessageCopyHelper( const QValueList< Q_UINT32 > & msgs,
- KMFolder * dest, bool move, QObject * parent ) :
- QObject( parent )
+MessageCopyHelper::MessageCopyHelper( const TQValueList< Q_UINT32 > & msgs,
+ KMFolder * dest, bool move, TQObject * parent ) :
+ TQObject( parent )
{
if ( msgs.isEmpty() || !dest )
return;
KMFolder *f = 0;
int index;
- QPtrList<KMMsgBase> list;
+ TQPtrList<KMMsgBase> list;
- for ( QValueList<Q_UINT32>::ConstIterator it = msgs.constBegin(); it != msgs.constEnd(); ++it ) {
+ for ( TQValueList<Q_UINT32>::ConstIterator it = msgs.constBegin(); it != msgs.constEnd(); ++it ) {
KMMsgDict::instance()->getLocation( *it, &f, &index );
if ( !f ) // not found
continue;
@@ -62,7 +62,7 @@ MessageCopyHelper::MessageCopyHelper( const QValueList< Q_UINT32 > & msgs,
command = new KMCopyCommand( dest, list );
}
- connect( command, SIGNAL(completed(KMCommand*)), SLOT(copyCompleted(KMCommand*)) );
+ connect( command, TQT_SIGNAL(completed(KMCommand*)), TQT_SLOT(copyCompleted(KMCommand*)) );
command->start();
}
@@ -71,7 +71,7 @@ void MessageCopyHelper::copyCompleted(KMCommand * cmd)
Q_UNUSED( cmd );
// close all folders we opened
- for ( QMap<QGuardedPtr<KMFolder>, int>::ConstIterator it = mOpenFolders.constBegin();
+ for ( TQMap<TQGuardedPtr<KMFolder>, int>::ConstIterator it = mOpenFolders.constBegin();
it != mOpenFolders.constEnd(); ++it ) {
it.key()->close( "messagecopyhelper" );
}
@@ -79,17 +79,17 @@ void MessageCopyHelper::copyCompleted(KMCommand * cmd)
deleteLater();
}
-QValueList< Q_UINT32 > MessageCopyHelper::serNumListFromMailList(const KPIM::MailList & list)
+TQValueList< Q_UINT32 > MessageCopyHelper::serNumListFromMailList(const KPIM::MailList & list)
{
- QValueList<Q_UINT32> rv;
+ TQValueList<Q_UINT32> rv;
for ( MailList::ConstIterator it = list.constBegin(); it != list.constEnd(); ++it )
rv.append( (*it).serialNumber() );
return rv;
}
-QValueList< Q_UINT32 > MessageCopyHelper::serNumListFromMsgList(QPtrList< KMMsgBase > list)
+TQValueList< Q_UINT32 > MessageCopyHelper::serNumListFromMsgList(TQPtrList< KMMsgBase > list)
{
- QValueList<Q_UINT32> rv;
+ TQValueList<Q_UINT32> rv;
KMMsgBase* msg = list.first();
while( msg ) {
rv.append( msg->getMsgSerNum() );
@@ -98,11 +98,11 @@ QValueList< Q_UINT32 > MessageCopyHelper::serNumListFromMsgList(QPtrList< KMMsgB
return rv;
}
-bool MessageCopyHelper::inReadOnlyFolder(const QValueList< Q_UINT32 > & sernums)
+bool MessageCopyHelper::inReadOnlyFolder(const TQValueList< Q_UINT32 > & sernums)
{
KMFolder *f = 0;
int index;
- for ( QValueList<Q_UINT32>::ConstIterator it = sernums.begin(); it != sernums.end(); ++it ) {
+ for ( TQValueList<Q_UINT32>::ConstIterator it = sernums.begin(); it != sernums.end(); ++it ) {
KMMsgDict::instance()->getLocation( *it, &f, &index );
if ( !f ) // not found
continue;