summaryrefslogtreecommitdiffstats
path: root/knode/knfolder.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /knode/knfolder.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knode/knfolder.cpp')
-rw-r--r--knode/knfolder.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/knode/knfolder.cpp b/knode/knfolder.cpp
index 81f4f01a..0044abc8 100644
--- a/knode/knfolder.cpp
+++ b/knode/knfolder.cpp
@@ -41,8 +41,8 @@ KNFolder::KNFolder()
}
-KNFolder::KNFolder(int id, const TQString &name, KNFolder *parent)
- : KNArticleCollection(parent), i_d(id), i_ndexDirty(false), w_asOpen(true)
+KNFolder::KNFolder(int id, const TQString &name, KNFolder *tqparent)
+ : KNArticleCollection(tqparent), i_d(id), i_ndexDirty(false), w_asOpen(true)
{
TQString fname=path()+TQString("custom_%1").arg(i_d);
@@ -51,7 +51,7 @@ KNFolder::KNFolder(int id, const TQString &name, KNFolder *parent)
i_ndexFile.setName(fname+".idx");
i_nfoPath=fname+".info";
- p_arentId=parent?parent->id():-1;
+ p_arentId=tqparent?tqparent->id():-1;
if(i_ndexFile.exists())
c_ount=i_ndexFile.size()/sizeof(DynData);
@@ -60,8 +60,8 @@ KNFolder::KNFolder(int id, const TQString &name, 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)
+KNFolder::KNFolder(int id, const TQString &name, const TQString &prefix, KNFolder *tqparent)
+ : KNArticleCollection(tqparent), i_d(id), i_ndexDirty(false), w_asOpen(true)
{
TQString fname=path()+TQString("%1_%2").arg(prefix).arg(i_d);
@@ -70,7 +70,7 @@ KNFolder::KNFolder(int id, const TQString &name, const TQString &prefix, KNFolde
i_ndexFile.setName(fname+".idx");
i_nfoPath=fname+".info";
- p_arentId=parent?parent->id():-1;
+ p_arentId=tqparent?tqparent->id():-1;
if(i_ndexFile.exists())
c_ount=i_ndexFile.size()/sizeof(DynData);
@@ -115,7 +115,7 @@ bool KNFolder::readInfo(const TQString &infoPath)
if (!isRootFolder() && !isStandardFolder()) {
n_ame=info.readEntry("name");
i_d=info.readNumEntry("id", -1);
- p_arentId=info.readNumEntry("parentId", -1);
+ p_arentId=info.readNumEntry("tqparentId", -1);
}
w_asOpen=info.readBoolEntry("wasOpen", true);
@@ -147,7 +147,7 @@ void KNFolder::saveInfo()
if (!isRootFolder() && !isStandardFolder()) {
info.writeEntry("name", n_ame);
info.writeEntry("id", i_d);
- info.writeEntry("parentId", p_arentId);
+ info.writeEntry("tqparentId", p_arentId);
}
if(l_istItem)
info.writeEntry("wasOpen", l_istItem->isOpen());
@@ -187,7 +187,7 @@ bool KNFolder::loadHdrs()
}
TQCString tmp;
- KQCStringSplitter split;
+ KTQCStringSplitter split;
KNLocalArticle *art;
DynData dynamic;
int pos1=0, pos2=0, cnt=0, byteCount;
@@ -244,8 +244,8 @@ bool KNFolder::loadHdrs()
//set overview
bool end=false;
- pos1=tmp.find(' ')+1;
- pos2=tmp.find('\t', pos1);
+ pos1=tmp.tqfind(' ')+1;
+ pos2=tmp.tqfind('\t', pos1);
if (pos2 == -1) {
pos2=tmp.length();
end=true;
@@ -254,7 +254,7 @@ bool KNFolder::loadHdrs()
if (!end) {
pos1=pos2+1;
- pos2=tmp.find('\t', pos1);
+ pos2=tmp.tqfind('\t', pos1);
if (pos2 == -1) {
pos2=tmp.length();
end=true;
@@ -264,7 +264,7 @@ bool KNFolder::loadHdrs()
if (!end) {
pos1=pos2+1;
- pos2=tmp.find('\t', pos1);
+ pos2=tmp.tqfind('\t', pos1);
if (pos2 == -1) {
pos2=tmp.length();
end=true;
@@ -284,7 +284,7 @@ bool KNFolder::loadHdrs()
clear();
closeFiles();
- knGlobals.seStatusMsg(TQString::null);
+ knGlobals.seStatusMsg(TQString());
knGlobals.top->setCursorBusy(false);
return false;
}
@@ -297,7 +297,7 @@ bool KNFolder::loadHdrs()
c_ount=cnt;
updateListItem();
- knGlobals.seStatusMsg(TQString::null);
+ knGlobals.seStatusMsg(TQString());
knGlobals.top->setCursorBusy(false);
return true;