From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmail/distributionlistdialog.cpp | 48 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'kmail/distributionlistdialog.cpp') diff --git a/kmail/distributionlistdialog.cpp b/kmail/distributionlistdialog.cpp index 9c8d6fd2b..b591afd71 100644 --- a/kmail/distributionlistdialog.cpp +++ b/kmail/distributionlistdialog.cpp @@ -38,31 +38,31 @@ #include #include -#include -#include -#include +#include +#include +#include class DistributionListItem : public QCheckListItem { public: - DistributionListItem( QListView *list ) - : QCheckListItem( list, QString::null, CheckBox ) + DistributionListItem( TQListView *list ) + : TQCheckListItem( list, TQString::null, CheckBox ) { } - void setAddressee( const KABC::Addressee &a, const QString &email ) + void setAddressee( const KABC::Addressee &a, const TQString &email ) { mIsTransient = false; init( a, email ); } - void setTransientAddressee( const KABC::Addressee &a, const QString &email ) + void setTransientAddressee( const KABC::Addressee &a, const TQString &email ) { mIsTransient = true; init( a, email ); } - void init( const KABC::Addressee &a, const QString &email ) + void init( const KABC::Addressee &a, const TQString &email ) { mAddressee = a; mEmail = email; @@ -75,7 +75,7 @@ class DistributionListItem : public QCheckListItem return mAddressee; } - QString email() const + TQString email() const { return mEmail; } @@ -87,31 +87,31 @@ class DistributionListItem : public QCheckListItem private: KABC::Addressee mAddressee; - QString mEmail; + TQString mEmail; bool mIsTransient; }; -DistributionListDialog::DistributionListDialog( QWidget *parent ) +DistributionListDialog::DistributionListDialog( TQWidget *parent ) : KDialogBase( Plain, i18n("Save Distribution List"), User1 | Cancel, User1, parent, 0, false, false, i18n("Save List") ) { - QFrame *topFrame = plainPage(); + TQFrame *topFrame = plainPage(); - QBoxLayout *topLayout = new QVBoxLayout( topFrame ); + TQBoxLayout *topLayout = new TQVBoxLayout( topFrame ); topLayout->setSpacing( spacingHint() ); - QBoxLayout *titleLayout = new QHBoxLayout( topLayout ); + TQBoxLayout *titleLayout = new TQHBoxLayout( topLayout ); - QLabel *label = new QLabel( i18n("Name:"), topFrame ); + TQLabel *label = new TQLabel( i18n("Name:"), topFrame ); titleLayout->addWidget( label ); - mTitleEdit = new QLineEdit( topFrame ); + mTitleEdit = new TQLineEdit( topFrame ); titleLayout->addWidget( mTitleEdit ); mTitleEdit->setFocus(); mRecipientsList = new KListView( topFrame ); - mRecipientsList->addColumn( QString::null ); + mRecipientsList->addColumn( TQString::null ); mRecipientsList->addColumn( i18n("Name") ); mRecipientsList->addColumn( i18n("Email") ); topLayout->addWidget( mRecipientsList ); @@ -121,11 +121,11 @@ void DistributionListDialog::setRecipients( const Recipient::List &recipients ) { Recipient::List::ConstIterator it; for( it = recipients.begin(); it != recipients.end(); ++it ) { - QStringList emails = KPIM::splitEmailAddrList( (*it).email() ); - QStringList::ConstIterator it2; + TQStringList emails = KPIM::splitEmailAddrList( (*it).email() ); + TQStringList::ConstIterator it2; for( it2 = emails.begin(); it2 != emails.end(); ++it2 ) { - QString name; - QString email; + TQString name; + TQString email; KABC::Addressee::parseEmailAddress( *it2, name, email ); if ( !email.isEmpty() ) { DistributionListItem *item = new DistributionListItem( mRecipientsList ); @@ -155,7 +155,7 @@ void DistributionListDialog::slotUser1() KABC::AddressBook *ab = KABC::StdAddressBook::self( true ); - QListViewItem *i = mRecipientsList->firstChild(); + TQListViewItem *i = mRecipientsList->firstChild(); while( i ) { DistributionListItem *item = static_cast( i ); if ( item->isOn() ) { @@ -178,12 +178,12 @@ void DistributionListDialog::slotUser1() manager.load(); #endif - QString name = mTitleEdit->text(); + TQString name = mTitleEdit->text(); if ( name.isEmpty() ) { bool ok = false; name = KInputDialog::getText( i18n("New Distribution List"), - i18n("Please enter name:"), QString::null, &ok, this ); + i18n("Please enter name:"), TQString::null, &ok, this ); if ( !ok || name.isEmpty() ) return; } -- cgit v1.2.1