summaryrefslogtreecommitdiffstats
path: root/ktouch/src/ktouchlecture.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /ktouch/src/ktouchlecture.cpp
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ktouch/src/ktouchlecture.cpp')
-rw-r--r--ktouch/src/ktouchlecture.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ktouch/src/ktouchlecture.cpp b/ktouch/src/ktouchlecture.cpp
index 5f5d57de..1f3b687b 100644
--- a/ktouch/src/ktouchlecture.cpp
+++ b/ktouch/src/ktouchlecture.cpp
@@ -122,16 +122,16 @@ bool KTouchLecture::readLecture(TQTextStream& in) {
m_lectureData.clear();
// now loop until end of file is reached and break down the textfile into several strings containing the levels
TQStringList slist;
- TQString current_level = TQString::null; // used to store the current level data
+ TQString current_level = TQString(); // used to store the current level data
line = in.readLine();
bool in_level = false;
while (!in.atEnd() && !line.isNull()) {
// only consider non-empty lines
if (!line.isEmpty()) {
// lecture title?
- if (line.find("# Title:") == 0)
+ if (line.tqfind("# Title:") == 0)
m_title = line.right(line.length() - 8).stripWhiteSpace();
- else if (line[0]!='#' || line.find("# Comment:")!=-1) {
+ else if (line[0]!='#' || line.tqfind("# Comment:")!=-1) {
// ok, after all those comment lines, we finally found the beginn of a level
in_level = true;
current_level += line + '\n';
@@ -139,7 +139,7 @@ bool KTouchLecture::readLecture(TQTextStream& in) {
else if (in_level) {
// ok, a new comment found, if we were reading a level, store it
slist.append(current_level);
- current_level = TQString::null;
+ current_level = TQString();
in_level = false;
}
}