summaryrefslogtreecommitdiffstats
path: root/kdat/Node.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
commit93910780efc46524d0f2c6693784b3fa10d26985 (patch)
treee44cc42ad795bb8399c6558bf8af3887c966fd49 /kdat/Node.cpp
parent4a25ca5c80d9b88fdc1a0d44d1db47da47206899 (diff)
downloadtdeadmin-93910780efc46524d0f2c6693784b3fa10d26985.tar.gz
tdeadmin-93910780efc46524d0f2c6693784b3fa10d26985.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdat/Node.cpp')
-rw-r--r--kdat/Node.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kdat/Node.cpp b/kdat/Node.cpp
index 9ce9e03..006e978 100644
--- a/kdat/Node.cpp
+++ b/kdat/Node.cpp
@@ -655,10 +655,10 @@ void MountedArchiveNode::setSelected( bool select )
{
if ( select ) {
// Deselect all other archives.
- Node* tqparent = (Node*)getParent();
- for ( int i = tqparent->childCount() - 1; i >= 0; i-- ) {
- if ( tqparent->tqchildAt( i ) != this ) {
- ((SelectableNode*)tqparent->tqchildAt( i ))->setSelected( FALSE );
+ Node* parent = (Node*)getParent();
+ for ( int i = parent->childCount() - 1; i >= 0; i-- ) {
+ if ( parent->tqchildAt( i ) != this ) {
+ ((SelectableNode*)parent->tqchildAt( i ))->setSelected( FALSE );
}
}
}
@@ -730,9 +730,9 @@ TQString MountedTapeDirectoryNode::getFullPath()
{
if ( _fullPath.length() == 0 ) {
_fullPath = getText() + "/";
- for ( Node* tqparent = (Node*)getParent(); !tqparent->isType( MountedArchiveNodeType ); tqparent = (Node*)tqparent->getParent() ) {
+ for ( Node* parent = (Node*)getParent(); !parent->isType( MountedArchiveNodeType ); parent = (Node*)parent->getParent() ) {
_fullPath.prepend( "/" );
- _fullPath.prepend( tqparent->getText() );
+ _fullPath.prepend( parent->getText() );
}
}
@@ -748,17 +748,17 @@ void MountedTapeDirectoryNode::setSelected( bool select )
{
if ( select ) {
// Deselect all other archives.
- Node* tqparent = (Node*)getParent();
+ Node* parent = (Node*)getParent();
Node* arcNode = 0;
- while ( !tqparent->isType( TapeDriveNodeType ) ) {
- if ( tqparent->isType( MountedArchiveNodeType ) ) {
- arcNode = tqparent;
+ while ( !parent->isType( TapeDriveNodeType ) ) {
+ if ( parent->isType( MountedArchiveNodeType ) ) {
+ arcNode = parent;
}
- tqparent = (Node*)tqparent->getParent();
+ parent = (Node*)parent->getParent();
}
- for ( int i = tqparent->childCount() - 1; i >= 0; i-- ) {
- if ( tqparent->tqchildAt( i ) != arcNode ) {
- ((SelectableNode*)tqparent->tqchildAt( i ))->setSelected( FALSE );
+ for ( int i = parent->childCount() - 1; i >= 0; i-- ) {
+ if ( parent->tqchildAt( i ) != arcNode ) {
+ ((SelectableNode*)parent->tqchildAt( i ))->setSelected( FALSE );
}
}
}
@@ -836,9 +836,9 @@ TQString MountedTapeFileNode::getFullPath()
{
if ( _fullPath.length() == 0 ) {
_fullPath = getText();
- for ( Node* tqparent = (Node*)getParent(); !tqparent->isType( MountedArchiveNodeType ); tqparent = (Node*)tqparent->getParent() ) {
+ for ( Node* parent = (Node*)getParent(); !parent->isType( MountedArchiveNodeType ); parent = (Node*)parent->getParent() ) {
_fullPath.prepend( "/" );
- _fullPath.prepend( tqparent->getText() );
+ _fullPath.prepend( parent->getText() );
}
}
@@ -854,17 +854,17 @@ void MountedTapeFileNode::setSelected( bool select )
{
if ( select ) {
// Deselect all other archives.
- Node* tqparent = (Node*)getParent();
+ Node* parent = (Node*)getParent();
Node* arcNode = 0;
- while ( !tqparent->isType( TapeDriveNodeType ) ) {
- if ( tqparent->isType( MountedArchiveNodeType ) ) {
- arcNode = tqparent;
+ while ( !parent->isType( TapeDriveNodeType ) ) {
+ if ( parent->isType( MountedArchiveNodeType ) ) {
+ arcNode = parent;
}
- tqparent = (Node*)tqparent->getParent();
+ parent = (Node*)parent->getParent();
}
- for ( int i = tqparent->childCount() - 1; i >= 0; i-- ) {
- if ( tqparent->tqchildAt( i ) != arcNode ) {
- ((SelectableNode*)tqparent->tqchildAt( i ))->setSelected( FALSE );
+ for ( int i = parent->childCount() - 1; i >= 0; i-- ) {
+ if ( parent->tqchildAt( i ) != arcNode ) {
+ ((SelectableNode*)parent->tqchildAt( i ))->setSelected( FALSE );
}
}
}