summaryrefslogtreecommitdiffstats
path: root/kvoctrain/kvoctrain/kvt-core/kvd_vcb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kvoctrain/kvoctrain/kvt-core/kvd_vcb.cpp')
-rw-r--r--kvoctrain/kvoctrain/kvt-core/kvd_vcb.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kvoctrain/kvoctrain/kvt-core/kvd_vcb.cpp b/kvoctrain/kvoctrain/kvt-core/kvd_vcb.cpp
index 72020b94..8821a9aa 100644
--- a/kvoctrain/kvoctrain/kvt-core/kvd_vcb.cpp
+++ b/kvoctrain/kvoctrain/kvt-core/kvd_vcb.cpp
@@ -91,7 +91,7 @@ bool kvoctrainDoc::saveToVcb (TQTextStream& os, TQString &/*title*/)
}
setModified (false);
- return os.device()->status() == IO_Ok;
+ return os.tqdevice()->status() == IO_Ok;
}
@@ -103,7 +103,7 @@ bool kvoctrainDoc::loadFromVcb (TQTextStream& is)
loadTypeNameVcb (is);
loadLessonVcb (is);
- int size = is.device()->size ();
+ int size = is.tqdevice()->size ();
int ln = size / 40 / 100; // assume each line about 40 chars
float f_ent_percent = size / 100.0;
emit progressChanged (this, 0);
@@ -114,7 +114,7 @@ bool kvoctrainDoc::loadFromVcb (TQTextStream& is)
ln--;
if (ln <= 0) {
ln = size / 40 / 100; // assume each line about 40 chars
- emit progressChanged(this, int(is.device()->at() / f_ent_percent));
+ emit progressChanged(this, int(is.tqdevice()->at() / f_ent_percent));
}
if (!s.stripWhiteSpace().isEmpty()) {
@@ -124,13 +124,13 @@ bool kvoctrainDoc::loadFromVcb (TQTextStream& is)
size_t odate = time(0),
tdate = time(0);
- int pos = s.find (VCB_SEPARATOR);
+ int pos = s.tqfind (VCB_SEPARATOR);
if (pos >= 0) {
o = s.left(pos);
s.remove (0, pos+TQString(VCB_SEPARATOR).length());
}
- pos = s.find (VCB_SEPARATOR);
+ pos = s.tqfind (VCB_SEPARATOR);
if (pos >= 0) {
t = s.left(pos);
s.remove (0, pos+TQString(VCB_SEPARATOR).length());
@@ -139,19 +139,19 @@ bool kvoctrainDoc::loadFromVcb (TQTextStream& is)
t = s;
}
- pos = s.find (VCB_SEPARATOR);
+ pos = s.tqfind (VCB_SEPARATOR);
if (pos >= 0) {
ograde = s.left(pos).toInt();
s.remove (0, pos+TQString(VCB_SEPARATOR).length());
}
- pos = s.find (VCB_SEPARATOR);
+ pos = s.tqfind (VCB_SEPARATOR);
if (pos >= 0) {
tgrade = s.left(pos).toInt();
s.remove (0, pos+TQString(VCB_SEPARATOR).length());
}
- pos = s.find (VCB_SEPARATOR);
+ pos = s.tqfind (VCB_SEPARATOR);
if (pos >= 0) {
odate = s.left(pos).toInt();
s.remove (0, pos+TQString(VCB_SEPARATOR).length());
@@ -184,7 +184,7 @@ bool kvoctrainDoc::loadFromVcb (TQTextStream& is)
langs.push_back("en");
setModified (false);
- return is.device()->status() == IO_Ok;
+ return is.tqdevice()->status() == IO_Ok;
}