summaryrefslogtreecommitdiffstats
path: root/kjots
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit6335dc55802871b5a43492f217b6edbb420204c4 (patch)
tree50c6c8672a52687568edea475614dfe3d98e62e5 /kjots
parent9b8c9f1f9e974ff0176108cfbd8852cd99ea68c8 (diff)
downloadtdeutils-6335dc55802871b5a43492f217b6edbb420204c4.tar.gz
tdeutils-6335dc55802871b5a43492f217b6edbb420204c4.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjots')
-rw-r--r--kjots/CHANGES4
-rw-r--r--kjots/KJotsMain.cpp2
-rw-r--r--kjots/kjotsentry.cpp14
3 files changed, 10 insertions, 10 deletions
diff --git a/kjots/CHANGES b/kjots/CHANGES
index f8fcbe8..a4cc4ff 100644
--- a/kjots/CHANGES
+++ b/kjots/CHANGES
@@ -10,7 +10,7 @@ new in version 0.5 (Aaron J. Seigo)
(Carsten Pfeiffer <[email protected]>)
- use KEdit instead of QMultiLineEdit directly
- -> gains Search & tqreplace + undo
+ -> gains Search & replace + undo
- allocate KTMainWindow on the heap to avoid double deletion on quit
new in version 0.4 (Mario Weilguni <[email protected]>)
@@ -62,7 +62,7 @@ new in version 0.2.0
- changed the tqlayout to be more KDE conforming (toolbar, statusbar,...)
- folders are now called books and entries are pages
- added subject to each page
-- you may popup a window with a list of all subjects and use it to tqfind
+- you may popup a window with a list of all subjects and use it to find
pages more easily
- further reduced the minimum size of the window
diff --git a/kjots/KJotsMain.cpp b/kjots/KJotsMain.cpp
index 695ab5a..28335ff 100644
--- a/kjots/KJotsMain.cpp
+++ b/kjots/KJotsMain.cpp
@@ -827,7 +827,7 @@ void KJotsMain::jumpToBookmark(const TQString& bookmark)
KMessageBox::information(this,
i18n("This bookmark is from an older version of KJots and is not fully supported. It may or may not work. You should delete and recreate this bookmark."), TQString(), "oldBookmarkWarning");
- int slash = bookmark.tqfindRev('/');
+ int slash = bookmark.findRev('/');
if (slash != -1)
{
diff --git a/kjots/kjotsentry.cpp b/kjots/kjotsentry.cpp
index 34c1ca0..e2d9d58 100644
--- a/kjots/kjotsentry.cpp
+++ b/kjots/kjotsentry.cpp
@@ -46,9 +46,9 @@
// helper functions for HTML output
TQString prepForHTML(TQString text)
{
- text.tqreplace("<", "&lt;");
- text.tqreplace(">", "&gt;");
- text.tqreplace("\n", "<br>");
+ text.replace("<", "&lt;");
+ text.replace(">", "&gt;");
+ text.replace("\n", "<br>");
return text;
}
@@ -428,7 +428,7 @@ bool KJotsBook::loadOldBook(TQFile &file)
int pos = 0;
- while ((pos = buf.tqfind('\\',pos)) != -1)
+ while ((pos = buf.find('\\',pos)) != -1)
if (buf[++pos] == '\\')
buf.remove(pos, 1 );
@@ -1125,8 +1125,8 @@ bool KJotsPage::isDirty()
TQDomElement text = doc.createElement( "Text" );
TQString saveText = body();
- if ( saveText.tqcontains("]]>") ) {
- saveText.tqreplace("]]>","]]&gt;");
+ if ( saveText.contains("]]>") ) {
+ saveText.replace("]]>","]]&gt;");
text.setAttribute("fixed", "1");
}
text.appendChild( doc.createCDATASection( saveText ));
@@ -1153,7 +1153,7 @@ void KJotsPage::parseXml( TQDomElement &me )
TQString bodyText = e.text();
if ( e.hasAttribute("fixed") )
{
- bodyText.tqreplace("]]&gt;", "]]>");
+ bodyText.replace("]]&gt;", "]]>");
}
setBody(bodyText);
}