summaryrefslogtreecommitdiffstats
path: root/ksirc/KSPrefs/page_autoconnect.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit2bc1d72869b62af05ae4feafd878203b526da8c5 (patch)
tree2676903bb600bd9646644856e354940471ad84e2 /ksirc/KSPrefs/page_autoconnect.cpp
parent937b2991d8e78166eea904c80ad04d34607017a4 (diff)
downloadtdenetwork-2bc1d72869b62af05ae4feafd878203b526da8c5.tar.gz
tdenetwork-2bc1d72869b62af05ae4feafd878203b526da8c5.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/KSPrefs/page_autoconnect.cpp')
-rw-r--r--ksirc/KSPrefs/page_autoconnect.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/ksirc/KSPrefs/page_autoconnect.cpp b/ksirc/KSPrefs/page_autoconnect.cpp
index 9a6e61ab..49920e42 100644
--- a/ksirc/KSPrefs/page_autoconnect.cpp
+++ b/ksirc/KSPrefs/page_autoconnect.cpp
@@ -26,7 +26,7 @@
#define PASS 2
#define SSL 3
-PageAutoConnect::PageAutoConnect( TQWidget *tqparent, const char *name ) : PageAutoConnectBase( tqparent, name)
+PageAutoConnect::PageAutoConnect( TQWidget *parent, const char *name ) : PageAutoConnectBase( parent, name)
{
KLVAutoConnect->setSorting( 0 );
//KLVAutoConnect->header()->hide();
@@ -170,25 +170,25 @@ void PageAutoConnect::add_pressed()
KLVAutoConnect->setCurrentItem(s);
}
else { /* update the existing one */
- TQListViewItem *tqparent;
+ TQListViewItem *parent;
TQListViewItem *child;
- if(s->tqparent()){
- tqparent = s->tqparent();
+ if(s->parent()){
+ parent = s->parent();
child = s;
}
else {
- tqparent = s;
+ parent = s;
child = 0x0;
}
- tqparent->setText(NAME, ServerLE->text());
- tqparent->setText(PK, TQString("%1").tqarg(PortKI->value()));
- tqparent->setText(PASS, PassLE->text());
+ parent->setText(NAME, ServerLE->text());
+ parent->setText(PK, TQString("%1").tqarg(PortKI->value()));
+ parent->setText(PASS, PassLE->text());
if(sslCB->isChecked())
- tqparent->setText(SSL, i18n("SSL"));
+ parent->setText(SSL, i18n("SSL"));
else
- tqparent->setText(SSL, TQString());
+ parent->setText(SSL, TQString());
if(child){
child->setText(NAME, ChannelLE->text());
@@ -197,7 +197,7 @@ void PageAutoConnect::add_pressed()
else {
if(ChannelLE->text().length() > 0){
fnd = 0;
- TQListViewItem *c = tqparent->firstChild();
+ TQListViewItem *c = parent->firstChild();
for( ; c != 0 && fnd == 0; c = c->nextSibling()){
if(c->text(NAME) == ChannelLE->text()){
c->setText(PK, KeyLE->text());
@@ -205,7 +205,7 @@ void PageAutoConnect::add_pressed()
}
}
if(fnd == 0){
- new TQListViewItem(tqparent, ChannelLE->text(), KeyLE->text());
+ new TQListViewItem(parent, ChannelLE->text(), KeyLE->text());
}
}
}
@@ -260,16 +260,16 @@ void PageAutoConnect::delete_pressed()
void PageAutoConnect::kvl_clicked(TQListViewItem *it)
{
if(it != 0){
- if(it->tqparent() != 0){
+ if(it->parent() != 0){
ChannelLE->setText(it->text(NAME));
KeyLE->setText(it->text(PK));
AddPB->setText(i18n("&Update"));
/*
- * Move it to the tqparent to setup tqparent/server
+ * Move it to the parent to setup parent/server
* values. This save writing this code
* in two places.
*/
- it = it->tqparent();
+ it = it->parent();
}
else {
AddPB->setText(i18n("&Update/Add"));
@@ -277,7 +277,7 @@ void PageAutoConnect::kvl_clicked(TQListViewItem *it)
KeyLE->clear();
}
- if(it->tqparent() == 0){
+ if(it->parent() == 0){
ServerLE->setText(it->text(NAME));
PortKI->setValue(it->text(PK).toInt());
PassLE->setText(it->text(PASS));