From a53c68f02a359d234dee62dfa3bdd12bb17b13b5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- kmouth/phrasebook/phrasebook.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kmouth/phrasebook/phrasebook.cpp') 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("%1").tqarg(i18n("Your chosen filename %1 has a different extension than .phrasebook. " "Do you wish to add .phrasebook 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); -- cgit v1.2.3