From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmail/distributionlistdialog.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kmail/distributionlistdialog.cpp') diff --git a/kmail/distributionlistdialog.cpp b/kmail/distributionlistdialog.cpp index 5f590b3b..62b4fcee 100644 --- a/kmail/distributionlistdialog.cpp +++ b/kmail/distributionlistdialog.cpp @@ -43,11 +43,11 @@ #include #include -class DistributionListItem : public QCheckListItem +class DistributionListItem : public TQCheckListItem { public: DistributionListItem( TQListView *list ) - : TQCheckListItem( list, TQString::null, CheckBox ) + : TQCheckListItem( list, TQString(), CheckBox ) { } @@ -93,9 +93,9 @@ class DistributionListItem : public QCheckListItem }; -DistributionListDialog::DistributionListDialog( TQWidget *parent ) +DistributionListDialog::DistributionListDialog( TQWidget *tqparent ) : KDialogBase( Plain, i18n("Save Distribution List"), User1 | Cancel, - User1, parent, 0, false, false, i18n("Save List") ) + User1, tqparent, 0, false, false, i18n("Save List") ) { TQFrame *topFrame = plainPage(); @@ -112,7 +112,7 @@ DistributionListDialog::DistributionListDialog( TQWidget *parent ) mTitleEdit->setFocus(); mRecipientsList = new KListView( topFrame ); - mRecipientsList->addColumn( TQString::null ); + mRecipientsList->addColumn( TQString() ); mRecipientsList->addColumn( i18n("Name") ); mRecipientsList->addColumn( i18n("Email") ); topLayout->addWidget( mRecipientsList ); @@ -131,7 +131,7 @@ void DistributionListDialog::setRecipients( const Recipient::List &recipients ) if ( !email.isEmpty() ) { DistributionListItem *item = new DistributionListItem( mRecipientsList ); KABC::Addressee::List addressees = - KABC::StdAddressBook::self( true )->tqfindByEmail( email ); + KABC::StdAddressBook::self( true )->findByEmail( email ); if ( addressees.isEmpty() ) { KABC::Addressee a; a.setNameFromString( name ); @@ -182,7 +182,7 @@ void DistributionListDialog::slotUser1() if ( name.isEmpty() ) { bool ok = false; name = KInputDialog::getText( i18n("New Distribution List"), - i18n("Please enter name:"), TQString::null, &ok, this ); + i18n("Please enter name:"), TQString(), &ok, this ); if ( !ok || name.isEmpty() ) return; } -- cgit v1.2.3