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 --- knode/kncleanup.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'knode/kncleanup.cpp') diff --git a/knode/kncleanup.cpp b/knode/kncleanup.cpp index 4998bd4c..3e79b4a6 100644 --- a/knode/kncleanup.cpp +++ b/knode/kncleanup.cpp @@ -14,10 +14,10 @@ #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -54,7 +54,7 @@ void KNCleanUp::start() d_lg = new ProgressDialog( mColList.count() ); d_lg->show(); - for ( QValueList::Iterator it = mColList.begin(); it != mColList.end(); ++it ) { + for ( TQValueList::Iterator it = mColList.begin(); it != mColList.end(); ++it ) { if ( (*it)->type() == KNCollection::CTgroup ) { d_lg->showMessage( i18n("Deleting expired articles in %1").arg( (*it)->name() ) ); kapp->processEvents(); @@ -198,7 +198,7 @@ void KNCleanUp::compactFolder(KNFolder *f) if (!f) return; - QDir dir(f->path()); + TQDir dir(f->path()); if(!dir.exists()) return; @@ -211,14 +211,14 @@ void KNCleanUp::compactFolder(KNFolder *f) } f->closeFiles(); - QFileInfo info(f->m_boxFile); - QString oldName=info.fileName(); - QString newName=oldName+".new"; + TQFileInfo info(f->m_boxFile); + TQString oldName=info.fileName(); + TQString newName=oldName+".new"; KNFile newMBoxFile(info.dirPath(true)+"/"+newName); if( (f->m_boxFile.open(IO_ReadOnly)) && (newMBoxFile.open(IO_WriteOnly)) ) { - QTextStream ts(&newMBoxFile); - ts.setEncoding(QTextStream::Latin1); + TQTextStream ts(&newMBoxFile); + ts.setEncoding(TQTextStream::Latin1); for(int idx=0; idxlength(); idx++) { art=f->at(idx); if(f->m_boxFile.at(art->startOffset())) { @@ -247,7 +247,7 @@ void KNCleanUp::compactFolder(KNFolder *f) KNCleanUp::ProgressDialog::ProgressDialog(int steps) - : QDialog(knGlobals.topWidget, 0, true) + : TQDialog(knGlobals.topWidget, 0, true) { const int w=400, h=160; @@ -258,21 +258,21 @@ KNCleanUp::ProgressDialog::ProgressDialog(int steps) setCaption(kapp->makeStdCaption(i18n("Cleaning Up"))); setFixedSize(w,h); - QFrame *top=new QFrame(this); + TQFrame *top=new TQFrame(this); top->setGeometry(0,0, w,h); - QVBoxLayout *topL=new QVBoxLayout(top, 10); + TQVBoxLayout *topL=new TQVBoxLayout(top, 10); - QLabel *l=new QLabel(i18n("Cleaning up. Please wait..."), top); + TQLabel *l=new TQLabel(i18n("Cleaning up. Please wait..."), top); topL->addWidget(l); KSeparator *sep=new KSeparator(top); topL->addWidget(sep); - m_sg=new QLabel(top); + m_sg=new TQLabel(top); topL->addWidget(m_sg); - p_bar=new QProgressBar(top); + p_bar=new TQProgressBar(top); topL->addWidget(p_bar); p_bar->setTotalSteps(100*s_teps); p_bar->setProgress(1); @@ -298,7 +298,7 @@ KNCleanUp::ProgressDialog::~ProgressDialog() } -void KNCleanUp::ProgressDialog::showMessage(const QString &s) +void KNCleanUp::ProgressDialog::showMessage(const TQString &s) { m_sg->setText(s); } @@ -311,7 +311,7 @@ void KNCleanUp::ProgressDialog::doProgress() } -void KNCleanUp::ProgressDialog::closeEvent(QCloseEvent *) +void KNCleanUp::ProgressDialog::closeEvent(TQCloseEvent *) { // do nothing => prevent that the user closes the window } -- cgit v1.2.3