summaryrefslogtreecommitdiffstats
path: root/libkdepim/recentaddresses.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/recentaddresses.cpp')
-rw-r--r--libkdepim/recentaddresses.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/libkdepim/recentaddresses.cpp b/libkdepim/recentaddresses.cpp
index ebac9e3f7..a8e7e76b5 100644
--- a/libkdepim/recentaddresses.cpp
+++ b/libkdepim/recentaddresses.cpp
@@ -39,7 +39,7 @@
#include <keditlistbox.h>
-#include <qlayout.h>
+#include <tqlayout.h>
using namespace KRecentAddress;
@@ -70,15 +70,15 @@ RecentAddresses::~RecentAddresses()
void RecentAddresses::load( KConfig *config )
{
- QStringList addresses;
- QString name;
- QString email;
+ TQStringList addresses;
+ TQString name;
+ TQString email;
m_addresseeList.clear();
KConfigGroupSaver cs( config, "General" );
m_maxCount = config->readNumEntry( "Maximum Recent Addresses", 40 );
addresses = config->readListEntry( "Recent Addresses" );
- for ( QStringList::Iterator it = addresses.begin(); it != addresses.end(); ++it ) {
+ for ( TQStringList::Iterator it = addresses.begin(); it != addresses.end(); ++it ) {
KABC::Addressee::parseEmailAddress( *it, name, email );
if ( !email.isEmpty() ) {
KABC::Addressee addr;
@@ -97,16 +97,16 @@ void RecentAddresses::save( KConfig *config )
config->writeEntry( "Recent Addresses", addresses() );
}
-void RecentAddresses::add( const QString& entry )
+void RecentAddresses::add( const TQString& entry )
{
if ( !entry.isEmpty() && m_maxCount > 0 ) {
- QStringList list = KPIM::splitEmailAddrList( entry );
- for( QStringList::const_iterator e_it = list.begin(); e_it != list.end(); ++e_it ) {
+ TQStringList list = KPIM::splitEmailAddrList( entry );
+ for( TQStringList::const_iterator e_it = list.begin(); e_it != list.end(); ++e_it ) {
KPIM::EmailParseResult errorCode = KPIM::isValidEmailAddress( *e_it );
if ( errorCode != KPIM::AddressOk )
continue;
- QString email;
- QString fullName;
+ TQString email;
+ TQString fullName;
KABC::Addressee addr;
KABC::Addressee::parseEmailAddress( *e_it, fullName, email );
@@ -146,9 +146,9 @@ void RecentAddresses::clear()
adjustSize();
}
-QStringList RecentAddresses::addresses() const
+TQStringList RecentAddresses::addresses() const
{
- QStringList addresses;
+ TQStringList addresses;
for ( KABC::Addressee::List::ConstIterator it = m_addresseeList.begin();
it != m_addresseeList.end(); ++it )
{
@@ -157,25 +157,25 @@ QStringList RecentAddresses::addresses() const
return addresses;
}
-RecentAddressDialog::RecentAddressDialog( QWidget *parent, const char *name )
+RecentAddressDialog::RecentAddressDialog( TQWidget *parent, const char *name )
: KDialogBase( Plain, i18n( "Edit Recent Addresses" ), Ok | Cancel, Ok,
parent, name, true )
{
- QWidget *page = plainPage();
- QVBoxLayout *layout = new QVBoxLayout( page, 0, spacingHint() );
+ TQWidget *page = plainPage();
+ TQVBoxLayout *layout = new TQVBoxLayout( page, 0, spacingHint() );
mEditor = new KEditListBox( i18n( "Recent Addresses" ), page, "", false,
KEditListBox::Add | KEditListBox::Remove );
layout->addWidget( mEditor );
}
-void RecentAddressDialog::setAddresses( const QStringList &addrs )
+void RecentAddressDialog::setAddresses( const TQStringList &addrs )
{
mEditor->clear();
mEditor->insertStringList( addrs );
}
-QStringList RecentAddressDialog::addresses() const
+TQStringList RecentAddressDialog::addresses() const
{
return mEditor->items();
}