summaryrefslogtreecommitdiffstats
path: root/korn/maildlg.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 /korn/maildlg.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 'korn/maildlg.cpp')
-rw-r--r--korn/maildlg.cpp32
1 files changed, 16 insertions, 16 deletions
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 <qlayout.h>
+#include <tqlayout.h>
#include<kdebug.h>
#include<klocale.h>
-#include<qapplication.h>
+#include<tqapplication.h>
#include "mailsubject.h"
-#include <qprogressdialog.h>
+#include <tqprogressdialog.h>
#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;