summaryrefslogtreecommitdiffstats
path: root/kaddressbook/undocmds.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 /kaddressbook/undocmds.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 'kaddressbook/undocmds.cpp')
-rw-r--r--kaddressbook/undocmds.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kaddressbook/undocmds.cpp b/kaddressbook/undocmds.cpp
index e9350c1bf..ee9895951 100644
--- a/kaddressbook/undocmds.cpp
+++ b/kaddressbook/undocmds.cpp
@@ -22,8 +22,8 @@
without including the source code for Qt in the source distribution.
*/
-#include <qapplication.h>
-#include <qclipboard.h>
+#include <tqapplication.h>
+#include <tqclipboard.h>
#include <klocale.h>
#include <kapplication.h>
@@ -36,12 +36,12 @@
#include "undocmds.h"
DeleteCommand::DeleteCommand( KABC::AddressBook *addressBook,
- const QStringList &uidList)
+ const TQStringList &uidList)
: Command( addressBook ), mUIDList( uidList )
{
}
-QString DeleteCommand::name() const
+TQString DeleteCommand::name() const
{
return i18n( "Delete Contact", "Delete %n Contacts", mUIDList.count() );
}
@@ -68,8 +68,8 @@ void DeleteCommand::execute()
{
KABC::Addressee addr;
- QStringList::ConstIterator it;
- const QStringList::ConstIterator endIt( mUIDList.end() );
+ TQStringList::ConstIterator it;
+ const TQStringList::ConstIterator endIt( mUIDList.end() );
for ( it = mUIDList.begin(); it != endIt; ++it ) {
addr = addressBook()->findByUid( *it );
lock()->lock( addr.resource() );
@@ -92,7 +92,7 @@ PasteCommand::PasteCommand( KAB::Core *core, const KABC::Addressee::List &addres
{
}
-QString PasteCommand::name() const
+TQString PasteCommand::name() const
{
return i18n( "Paste Contact", "Paste %n Contacts", mAddresseeList.count() );
}
@@ -114,7 +114,7 @@ void PasteCommand::unexecute()
void PasteCommand::execute()
{
- QStringList uids;
+ TQStringList uids;
KABC::Addressee::List::ConstIterator constIt;
const KABC::Addressee::List::ConstIterator constEndIt( mAddresseeList.end() );
@@ -136,8 +136,8 @@ void PasteCommand::execute()
lock()->unlock( (*it).resource() );
}
- QStringList::ConstIterator uidIt;
- const QStringList::ConstIterator uidEndIt( uids.end() );
+ TQStringList::ConstIterator uidIt;
+ const TQStringList::ConstIterator uidEndIt( uids.end() );
for ( uidIt = uids.begin(); uidIt != uidEndIt; ++uidIt )
mCore->editContact( *uidIt );
}
@@ -148,7 +148,7 @@ NewCommand::NewCommand( KABC::AddressBook *addressBook, const KABC::Addressee::L
{
}
-QString NewCommand::name() const
+TQString NewCommand::name() const
{
return i18n( "New Contact", "New %n Contacts", mAddresseeList.count() );
}
@@ -192,7 +192,7 @@ EditCommand::EditCommand( KABC::AddressBook *addressBook,
{
}
-QString EditCommand::name() const
+TQString EditCommand::name() const
{
return i18n( "Edit Contact" );
}
@@ -212,12 +212,12 @@ void EditCommand::execute()
}
-CutCommand::CutCommand( KABC::AddressBook *addressBook, const QStringList &uidList )
+CutCommand::CutCommand( KABC::AddressBook *addressBook, const TQStringList &uidList )
: Command( addressBook ), mUIDList( uidList )
{
}
-QString CutCommand::name() const
+TQString CutCommand::name() const
{
return i18n( "Cut Contact", "Cut %n Contacts", mUIDList.count() );
}
@@ -238,7 +238,7 @@ void CutCommand::unexecute()
mAddresseeList.clear();
- QClipboard *cb = QApplication::clipboard();
+ QClipboard *cb = TQApplication::clipboard();
kapp->processEvents();
cb->setText( mOldText );
}
@@ -247,8 +247,8 @@ void CutCommand::execute()
{
KABC::Addressee addr;
- QStringList::ConstIterator it;
- const QStringList::ConstIterator endIt( mUIDList.end() );
+ TQStringList::ConstIterator it;
+ const TQStringList::ConstIterator endIt( mUIDList.end() );
for ( it = mUIDList.begin(); it != endIt; ++it ) {
addr = addressBook()->findByUid( *it );
mAddresseeList.append( addr );
@@ -265,7 +265,7 @@ void CutCommand::execute()
// Convert to clipboard
mClipText = AddresseeUtil::addresseesToClipboard( mAddresseeList );
- QClipboard *cb = QApplication::clipboard();
+ QClipboard *cb = TQApplication::clipboard();
mOldText = cb->text();
kapp->processEvents();
cb->setText( mClipText );