summaryrefslogtreecommitdiffstats
path: root/kdat/Node.cpp
diff options
context:
space:
mode:
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 );
}
}
}