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 --- korn/maildlg.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'korn/maildlg.cpp') diff --git a/korn/maildlg.cpp b/korn/maildlg.cpp index 3e6cd4cce..086796c8a 100644 --- a/korn/maildlg.cpp +++ b/korn/maildlg.cpp @@ -1,24 +1,24 @@ #include "maildlg.h" -#include +#include #include #include -#include +#include #include "mailsubject.h" -#include +#include #include "maildrop.h" -KornMailDlg::KornMailDlg( QWidget *parent ) +KornMailDlg::KornMailDlg( TQWidget *parent ) : KDialogBase( parent, "maildialog", true, i18n("Mail Details"), User1|Close, Close, true, KGuiItem(i18n("&Full Message"))), _progress( 0 ) { - QWidget * page = new QWidget( this ); + TQWidget * page = new TQWidget( this ); setMainWidget(page); - QVBoxLayout * topLayout = new QVBoxLayout( page, 0, spacingHint() ); + TQVBoxLayout * topLayout = new TQVBoxLayout( page, 0, spacingHint() ); _editCtrl = new KEdit(page); topLayout->addWidget(_editCtrl, 10); _editCtrl->setReadOnly(true); - connect(this, SIGNAL(user1Clicked()), this, SLOT(showFullMessage())); - setInitialSize(QSize(QApplication::desktop()->width()*9/10, QApplication::desktop()->height()/2)); + connect(this, TQT_SIGNAL(user1Clicked()), this, TQT_SLOT(showFullMessage())); + setInitialSize(TQSize(TQApplication::desktop()->width()*9/10, TQApplication::desktop()->height()/2)); } KornMailDlg::~KornMailDlg() @@ -36,7 +36,7 @@ void KornMailDlg::showFullMessage() _loadMailCanceled = false; // create progress dialog - _progress = new QProgressDialog(this, "bla", TRUE); + _progress = new TQProgressDialog(this, "bla", TRUE); _progress->setMinimumDuration(0); _progress->setLabelText(i18n("Loading full mail. Please wait...")); @@ -46,19 +46,19 @@ void KornMailDlg::showFullMessage() qApp->processEvents(); // connect the mailbox with the progress dialog in case it supports progress bars - connect(_mailDrop, SIGNAL(readMailTotalSteps(int)), _progress, SLOT(setTotalSteps(int))); - connect(_mailDrop, SIGNAL(readMailProgress(int)), _progress, SLOT(setProgress(int))); + connect(_mailDrop, TQT_SIGNAL(readMailTotalSteps(int)), _progress, TQT_SLOT(setTotalSteps(int))); + connect(_mailDrop, TQT_SIGNAL(readMailProgress(int)), _progress, TQT_SLOT(setProgress(int))); qApp->processEvents(); // connect the mailbox's cancel button - connect(_progress, SIGNAL(canceled()), this, SLOT(loadMailCanceled())); + connect(_progress, TQT_SIGNAL(canceled()), this, TQT_SLOT(loadMailCanceled())); - connect(_mailDrop, SIGNAL(readMailReady(QString*)), this, SLOT(readMailReady(QString*))); + connect(_mailDrop, TQT_SIGNAL(readMailReady(TQString*)), this, TQT_SLOT(readMailReady(TQString*))); // now load the mail fully if( _mailDrop->synchrone() ) { - QString mail = _mailDrop->readMail(_mailSubject->getId(), &_loadMailCanceled); + TQString mail = _mailDrop->readMail(_mailSubject->getId(), &_loadMailCanceled); readMailReady( &mail ); } else @@ -77,7 +77,7 @@ void KornMailDlg::setMailSubject( KornMailSubject * mailSubject ) enableButton(User1, !_mailSubject->isHeaderFullMessage() && _mailDrop->canReadMail()); } -void KornMailDlg::readMailReady( QString* mail ) +void KornMailDlg::readMailReady( TQString* mail ) { deleteProgress(); @@ -100,7 +100,7 @@ void KornMailDlg::deleteProgress() _progress->setProgress(_progress->totalSteps()); _progress->hide(); - disconnect( _mailDrop, SIGNAL(readMailReady(QString*)), this, SLOT(readMailReady(QString*))); + disconnect( _mailDrop, TQT_SIGNAL(readMailReady(TQString*)), this, TQT_SLOT(readMailReady(TQString*))); delete _progress; _progress = 0; -- cgit v1.2.1