summaryrefslogtreecommitdiffstats
path: root/kmail/distributionlistdialog.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 /kmail/distributionlistdialog.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 'kmail/distributionlistdialog.cpp')
-rw-r--r--kmail/distributionlistdialog.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kmail/distributionlistdialog.cpp b/kmail/distributionlistdialog.cpp
index 9c8d6fd2..b591afd7 100644
--- a/kmail/distributionlistdialog.cpp
+++ b/kmail/distributionlistdialog.cpp
@@ -38,31 +38,31 @@
#include <kmessagebox.h>
#include <kinputdialog.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlineedit.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
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<DistributionListItem *>( 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;
}