summaryrefslogtreecommitdiffstats
path: root/knode/kngroupbrowser.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /knode/kngroupbrowser.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knode/kngroupbrowser.cpp')
-rw-r--r--knode/kngroupbrowser.cpp26
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);
}
}