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 | 937b2991d8e78166eea904c80ad04d34607017a4 (patch) | |
tree | 2accb8161eab09df5d7a5484ea9ea080ad123168 /knewsticker/newsscroller.cpp | |
parent | dba26cb985af370c33d1767037851705cc561726 (diff) | |
download | tdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.tar.gz tdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knewsticker/newsscroller.cpp')
-rw-r--r-- | knewsticker/newsscroller.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/knewsticker/newsscroller.cpp b/knewsticker/newsscroller.cpp index 76d81050..b24e87f9 100644 --- a/knewsticker/newsscroller.cpp +++ b/knewsticker/newsscroller.cpp @@ -177,7 +177,7 @@ void NewsScroller::dropEvent(TQDropEvent* event) if ( TQTextDrag::decode(event, newSourceUrl) ) { // <HACK> // This is just for http://www.webreference.com/services/news/ - newSourceUrl = newSourceUrl.tqreplace(TQRegExp( + newSourceUrl = newSourceUrl.replace(TQRegExp( TQString::tqfromLatin1("^view-source:http%3A//")), TQString::tqfromLatin1("http://")); // </HACK> @@ -190,9 +190,9 @@ void NewsScroller::dropEvent(TQDropEvent* event) TQStringList newsSources = configFrontend.newsSources(); TQString name = i18n("Unknown"); - if (newsSources.tqcontains(name)) + if (newsSources.contains(name)) for (unsigned int i = 0; ; i++) - if (!newsSources.tqcontains(i18n("Unknown %1").tqarg(i))) { + if (!newsSources.contains(i18n("Unknown %1").tqarg(i))) { name = i18n("Unknown %1").tqarg(i); break; } @@ -256,7 +256,7 @@ void NewsScroller::scroll(int distance, bool interpret_directions) TQPoint pt = mapFromGlobal(TQCursor::pos()); - if (contentsRect().tqcontains(pt)) + if (contentsRect().contains(pt)) updateActive(pt); update(); @@ -548,7 +548,7 @@ bool NewsScroller::updateActive(const TQPoint &pt) rect.setWidth(width()); } - if (rect.tqcontains(pt)) + if (rect.contains(pt)) break; } if (*it) |