diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /lib/kofficeui/KoInsertLink.cpp | |
parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
download | koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kofficeui/KoInsertLink.cpp')
-rw-r--r-- | lib/kofficeui/KoInsertLink.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/kofficeui/KoInsertLink.cpp b/lib/kofficeui/KoInsertLink.cpp index 947624b9..4c863935 100644 --- a/lib/kofficeui/KoInsertLink.cpp +++ b/lib/kofficeui/KoInsertLink.cpp @@ -129,25 +129,25 @@ void KoInsertLinkDia::setHrefLinkName(const TQString &_href, const TQString &_li } return; } - if(_href.tqfind("http://")!=-1 || _href.tqfind("https://")!=-1 ||_href.tqfind("ftp://")!=-1 ) + if(_href.find("http://")!=-1 || _href.find("https://")!=-1 ||_href.find("ftp://")!=-1 ) { internetLink->setHrefName(_href); internetLink->setLinkName(_link); showPage(0); } - else if(_href.tqfind("file:/")!=-1) + else if(_href.find("file:/")!=-1) { fileLink->setHrefName(_href); fileLink->setLinkName(_link); showPage(2); } - else if(_href.tqfind("mailto:")!=-1 || _href.tqfind("news:")!=-1) + else if(_href.find("mailto:")!=-1 || _href.find("news:")!=-1) { mailLink->setHrefName(_href); mailLink->setLinkName(_link); showPage(1); } - else if(_href.tqfind("bkm://")!=-1) + else if(_href.find("bkm://")!=-1) { if ( bookmarkLink ) { @@ -259,7 +259,7 @@ TQString internetLinkPage::createInternetLink() if(result.isEmpty()) return result; - if(result.tqfind("http://")==-1 && result.tqfind("https://")==-1 && result.tqfind("ftp://")==-1) + if(result.find("http://")==-1 && result.find("https://")==-1 && result.find("ftp://")==-1) result = "http://"+result; return result; } @@ -332,7 +332,7 @@ TQString bookmarkLinkPage::createBookmarkLink() if(result.isEmpty()) return result; - if(result.tqfind("bkm://")==-1) + if(result.find("bkm://")==-1) result = "bkm://"+result; return result; } @@ -411,7 +411,7 @@ TQString mailLinkPage::createMailLink() if(result.isEmpty()) return result; - if(result.tqfind("mailto:")==-1 && result.tqfind("news:")==-1) + if(result.find("mailto:")==-1 && result.find("news:")==-1) result = "mailto:"+result; return result; } @@ -516,7 +516,7 @@ TQString fileLinkPage::createFileLink() if(result.isEmpty()) return result; - if(result.tqfind("file:/")==-1) + if(result.find("file:/")==-1) result = "file://"+result; return result; } |