diff options
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) |