summaryrefslogtreecommitdiffstats
path: root/kmouth/phrasebook
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
commita53c68f02a359d234dee62dfa3bdd12bb17b13b5 (patch)
tree5a800b73c31a1a1251ab533dc614b521f1378ce3 /kmouth/phrasebook
parent389971def351e67fcf01c3dbe6b83c4d721dd755 (diff)
downloadtdeaccessibility-a53c68f02a359d234dee62dfa3bdd12bb17b13b5.tar.gz
tdeaccessibility-a53c68f02a359d234dee62dfa3bdd12bb17b13b5.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmouth/phrasebook')
-rw-r--r--kmouth/phrasebook/phrasebook.cpp10
-rw-r--r--kmouth/phrasebook/phrasebookdialog.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/kmouth/phrasebook/phrasebook.cpp b/kmouth/phrasebook/phrasebook.cpp
index 2efc2e6..7ff932b 100644
--- a/kmouth/phrasebook/phrasebook.cpp
+++ b/kmouth/phrasebook/phrasebook.cpp
@@ -282,10 +282,10 @@ int PhraseBook::save (TQWidget *tqparent, const TQString &title, KURL &url, bool
bool result;
if (fdlg.currentFilter() == "*.phrasebook") {
- if (url.fileName (false).tqcontains('.') == 0) {
+ if (url.fileName (false).contains('.') == 0) {
url.setFileName (url.fileName(false) + ".phrasebook");
}
- else if (url.fileName (false).right (11).tqcontains (".phrasebook", false) == 0) {
+ else if (url.fileName (false).right (11).contains (".phrasebook", false) == 0) {
int filetype = KMessageBox::questionYesNoCancel (0,TQString("<qt>%1</qt>").tqarg(i18n("Your chosen filename <i>%1</i> has a different extension than <i>.phrasebook</i>. "
"Do you wish to add <i>.phrasebook</i> to the filename?").tqarg(url.filename())),i18n("File Extension"),i18n("Add"),i18n("Do Not Add"));
if (filetype == KMessageBox::Cancel) {
@@ -298,7 +298,7 @@ int PhraseBook::save (TQWidget *tqparent, const TQString &title, KURL &url, bool
result = save (url, true);
}
else if (fdlg.currentFilter() == "*.txt") {
- if (url.fileName (false).right (11).tqcontains (".phrasebook", false) == 0) {
+ if (url.fileName (false).right (11).contains (".phrasebook", false) == 0) {
result = save (url, false);
}
else {
@@ -480,9 +480,9 @@ const char *PhraseBookDrag::format (int i) const {
TQByteArray PhraseBookDrag::tqencodedData (const char* mime) const {
TQCString m(mime);
m = m.lower();
- if (m.tqcontains("xml-phrasebook"))
+ if (m.contains("xml-phrasebook"))
return xmlphrasebook.tqencodedData(mime);
- else if (m.tqcontains("xml"))
+ else if (m.contains("xml"))
return xml.tqencodedData(mime);
else
return plain.tqencodedData(mime);
diff --git a/kmouth/phrasebook/phrasebookdialog.cpp b/kmouth/phrasebook/phrasebookdialog.cpp
index 6e4deda..dff69e8 100644
--- a/kmouth/phrasebook/phrasebookdialog.cpp
+++ b/kmouth/phrasebook/phrasebookdialog.cpp
@@ -383,7 +383,7 @@ TQString PhraseBookDialog::displayPath (TQString filename) {
TQFileInfo file(filename);
TQString path = file.dirPath();
TQString dispPath = "";
- uint position = path.tqfind("/kmouth/books/")+TQString("/kmouth/books/").length();
+ uint position = path.find("/kmouth/books/")+TQString("/kmouth/books/").length();
while (path.length() > position) {
file.setFile(path);