diff options
Diffstat (limited to 'knode/kngroupbrowser.cpp')
-rw-r--r-- | knode/kngroupbrowser.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/knode/kngroupbrowser.cpp b/knode/kngroupbrowser.cpp index d8e3f8354..d28e9ed92 100644 --- a/knode/kngroupbrowser.cpp +++ b/knode/kngroupbrowser.cpp @@ -34,9 +34,9 @@ #include <tqpushbutton.h> -KNGroupBrowser::KNGroupBrowser(TQWidget *parent, const TQString &caption, KNNntpAccount *a, +KNGroupBrowser::KNGroupBrowser(TQWidget *tqparent, const TQString &caption, KNNntpAccount *a, int buttons, bool newCBact, const TQString &user1, const TQString &user2) : - KDialogBase( parent, 0L, true, caption, buttons | Help | Ok | Cancel, Ok, true, user1, user2 ), + KDialogBase( tqparent, 0L, true, caption, buttons | Help | Ok | Cancel, Ok, true, user1, user2 ), incrementalFilter(false), a_ccount(a) { refilterTimer = new TQTimer(); @@ -190,7 +190,7 @@ bool KNGroupBrowser::itemInListView(TQListView *view, const KNGroupInfo &gi) } -void KNGroupBrowser::createListItems(TQListViewItem *parent) +void KNGroupBrowser::createListItems(TQListViewItem *tqparent) { TQString prefix, tlgn, compare; TQListViewItem *it; @@ -198,11 +198,11 @@ void KNGroupBrowser::createListItems(TQListViewItem *parent) int colon; bool expandit=false; - if(parent) { - TQListViewItem *p=parent; + if(tqparent) { + TQListViewItem *p=tqparent; while(p) { prefix.prepend(p->text(0)); - p=p->parent(); + p=p->tqparent(); } } @@ -217,7 +217,7 @@ void KNGroupBrowser::createListItems(TQListViewItem *parent) compare=gn->name.mid(prefix.length()); if(!expandit || !compare.startsWith(tlgn)) { - if((colon=compare.find('.'))!=-1) { + if((colon=compare.tqfind('.'))!=-1) { colon++; expandit=true; } else { @@ -228,8 +228,8 @@ void KNGroupBrowser::createListItems(TQListViewItem *parent) tlgn = compare.left(colon); if(expandit) { - if(parent) - it=new TQListViewItem(parent, tlgn); + if(tqparent) + it=new TQListViewItem(tqparent, tlgn); else it=new TQListViewItem(groupView, tlgn); @@ -237,8 +237,8 @@ void KNGroupBrowser::createListItems(TQListViewItem *parent) it->setExpandable(true); } else { - if(parent) - cit=new CheckItem(parent, *gn, this); + if(tqparent) + cit=new CheckItem(tqparent, *gn, this); else cit=new CheckItem(groupView, *gn, this); updateItemState(cit); @@ -327,7 +327,7 @@ void KNGroupBrowser::slotFilter(const TQString &txt) for(KNGroupInfo *g=matchList->first(); g; g=matchList->next()) { if ((notCheckSub||g->subscribed)&& (notCheckNew||g->newGroup)&& - (notCheckStr||(g->name.find(filtertxt)!=-1))) + (notCheckStr||(g->name.tqfind(filtertxt)!=-1))) tempList->append(g); } @@ -339,7 +339,7 @@ void KNGroupBrowser::slotFilter(const TQString &txt) for(KNGroupInfo *g=allList->first(); g; g=allList->next()) { if ((notCheckSub||g->subscribed)&& (notCheckNew||g->newGroup)&& - (notCheckStr||(isRegexp? (reg.search(g->name,0) != -1):(g->name.find(filtertxt)!=-1)))) + (notCheckStr||(isRegexp? (reg.search(g->name,0) != -1):(g->name.tqfind(filtertxt)!=-1)))) matchList->append(g); } } |