diff options
Diffstat (limited to 'kaddressbook/undocmds.cpp')
-rw-r--r-- | kaddressbook/undocmds.cpp | 36 |
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 ); |