diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /knode/kncleanup.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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 'knode/kncleanup.cpp')
-rw-r--r-- | knode/kncleanup.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/knode/kncleanup.cpp b/knode/kncleanup.cpp index 4998bd4c2..3e79b4a62 100644 --- a/knode/kncleanup.cpp +++ b/knode/kncleanup.cpp @@ -14,10 +14,10 @@ #include <stdlib.h> -#include <qdir.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qprogressbar.h> +#include <tqdir.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqprogressbar.h> #include <klocale.h> #include <kmessagebox.h> @@ -54,7 +54,7 @@ void KNCleanUp::start() d_lg = new ProgressDialog( mColList.count() ); d_lg->show(); - for ( QValueList<KNArticleCollection*>::Iterator it = mColList.begin(); it != mColList.end(); ++it ) { + for ( TQValueList<KNArticleCollection*>::Iterator it = mColList.begin(); it != mColList.end(); ++it ) { if ( (*it)->type() == KNCollection::CTgroup ) { d_lg->showMessage( i18n("Deleting expired articles in <b>%1</b>").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; idx<f->length(); 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 } |