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/knfolder.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'knode/knfolder.cpp') diff --git a/knode/knfolder.cpp b/knode/knfolder.cpp index 9cdb2f054..01855d5bd 100644 --- a/knode/knfolder.cpp +++ b/knode/knfolder.cpp @@ -12,7 +12,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US */ -#include +#include #include #include @@ -41,10 +41,10 @@ KNFolder::KNFolder() } -KNFolder::KNFolder(int id, const QString &name, KNFolder *parent) +KNFolder::KNFolder(int id, const TQString &name, KNFolder *parent) : KNArticleCollection(parent), i_d(id), i_ndexDirty(false), w_asOpen(true) { - QString fname=path()+QString("custom_%1").arg(i_d); + TQString fname=path()+TQString("custom_%1").arg(i_d); n_ame = name; m_boxFile.setName(fname+".mbox"); @@ -60,10 +60,10 @@ KNFolder::KNFolder(int id, const QString &name, KNFolder *parent) } -KNFolder::KNFolder(int id, const QString &name, const QString &prefix, KNFolder *parent) +KNFolder::KNFolder(int id, const TQString &name, const TQString &prefix, KNFolder *parent) : KNArticleCollection(parent), i_d(id), i_ndexDirty(false), w_asOpen(true) { - QString fname=path()+QString("%1_%2").arg(prefix).arg(i_d); + TQString fname=path()+TQString("%1_%2").arg(prefix).arg(i_d); n_ame = name; m_boxFile.setName(fname+".mbox"); @@ -95,16 +95,16 @@ void KNFolder::updateListItem() } -QString KNFolder::path() +TQString KNFolder::path() { - QString dir(locateLocal("data","knode/")+"folders/"); + TQString dir(locateLocal("data","knode/")+"folders/"); /*if (dir.isNull()) KNHelper::displayInternalFileError();*/ return dir; } -bool KNFolder::readInfo(const QString &infoPath) +bool KNFolder::readInfo(const TQString &infoPath) { if(infoPath.isEmpty()) return false; @@ -120,8 +120,8 @@ bool KNFolder::readInfo(const QString &infoPath) w_asOpen=info.readBoolEntry("wasOpen", true); if(i_d>-1) { - QFileInfo fi(infoPath); - QString fname=fi.dirPath(true)+"/"+fi.baseName(); + TQFileInfo fi(infoPath); + TQString fname=fi.dirPath(true)+"/"+fi.baseName(); closeFiles(); clear(); @@ -186,7 +186,7 @@ bool KNFolder::loadHdrs() return false; } - QCString tmp; + TQCString tmp; KQCStringSplitter split; KNLocalArticle *art; DynData dynamic; @@ -284,7 +284,7 @@ bool KNFolder::loadHdrs() clear(); closeFiles(); - knGlobals.setStatusMsg(QString::null); + knGlobals.setStatusMsg(TQString::null); knGlobals.top->setCursorBusy(false); return false; } @@ -297,7 +297,7 @@ bool KNFolder::loadHdrs() c_ount=cnt; updateListItem(); - knGlobals.setStatusMsg(QString::null); + knGlobals.setStatusMsg(TQString::null); knGlobals.top->setCursorBusy(false); return true; @@ -347,7 +347,7 @@ bool KNFolder::loadArticle(KNLocalArticle *a) m_boxFile.readLine(); //skip X-KNode-Overview unsigned int size=a->endOffset()-m_boxFile.at()-1; - QCString buff(size+10); + TQCString buff(size+10); int readBytes=m_boxFile.readBlock(buff.data(), size); closeFiles(); if(readBytes < (int)(size) && m_boxFile.status() != IO_Ok) { //cannot read file @@ -378,8 +378,8 @@ bool KNFolder::saveArticles( KNLocalArticle::List &l ) int addCnt=0; bool ret=true; bool clear=false; - QTextStream ts(&m_boxFile); - ts.setEncoding(QTextStream::Latin1); + TQTextStream ts(&m_boxFile); + ts.setEncoding(TQTextStream::Latin1); for ( KNLocalArticle::List::Iterator it = l.begin(); it != l.end(); ++it ) { @@ -527,7 +527,7 @@ void KNFolder::deleteFiles() { m_boxFile.remove(); i_ndexFile.remove(); - QFile::remove(i_nfoPath); + TQFile::remove(i_nfoPath); } -- cgit v1.2.1