summaryrefslogtreecommitdiffstats
path: root/src/replaygainfilelist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/replaygainfilelist.cpp')
-rwxr-xr-xsrc/replaygainfilelist.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/replaygainfilelist.cpp b/src/replaygainfilelist.cpp
index 51154cf..076766c 100755
--- a/src/replaygainfilelist.cpp
+++ b/src/replaygainfilelist.cpp
@@ -33,8 +33,8 @@
// ### soundkonverter 0.4: give the 'track' and 'album' column a minimum width and fill the rest of the space with the 'file' column - make some margins, too
-ReplayGainFileListItem::ReplayGainFileListItem( TQListView* tqparent )
- : KListViewItem( tqparent )
+ReplayGainFileListItem::ReplayGainFileListItem( TQListView* parent )
+ : KListViewItem( parent )
{
m_type = File;
mimeType = "application/octet-stream";
@@ -42,8 +42,8 @@ ReplayGainFileListItem::ReplayGainFileListItem( TQListView* tqparent )
queued = false;
}
-// ReplayGainFileListItem::ReplayGainFileListItem( TQListView* tqparent, TQListViewItem* after )
-// : KListViewItem( tqparent, after )
+// ReplayGainFileListItem::ReplayGainFileListItem( TQListView* parent, TQListViewItem* after )
+// : KListViewItem( parent, after )
// {
// m_type = File;
// mimeType = "application/octet-stream";
@@ -51,8 +51,8 @@ ReplayGainFileListItem::ReplayGainFileListItem( TQListView* tqparent )
// queued = false;
// }
-ReplayGainFileListItem::ReplayGainFileListItem( ReplayGainFileListItem* tqparent )
- : KListViewItem( tqparent )
+ReplayGainFileListItem::ReplayGainFileListItem( ReplayGainFileListItem* parent )
+ : KListViewItem( parent )
{
m_type = File;
mimeType = "application/octet-stream";
@@ -160,8 +160,8 @@ int ReplayGainFileListItem::compare( TQListViewItem* item, int column, bool asce
else return KListViewItem::compare( item, column, ascending );
}
-ReplayGainFileList::ReplayGainFileList( TagEngine* _tagEngine, Config* _config, Logger* _logger, TQWidget *tqparent, const char *name )
- : KListView( tqparent, name )
+ReplayGainFileList::ReplayGainFileList( TagEngine* _tagEngine, Config* _config, Logger* _logger, TQWidget *parent, const char *name )
+ : KListView( parent, name )
{
tagEngine = _tagEngine;
config = _config;
@@ -382,12 +382,12 @@ void ReplayGainFileList::contentsDropEvent( TQDropEvent *e )
TQPoint vp = contentsToViewport( e->pos() );
ReplayGainFileListItem* newParent = itemAt( vp );
- // if the item is a 'file', use the tqparent item
+ // if the item is a 'file', use the parent item
if( newParent && newParent->type() != ReplayGainFileListItem::Album ) {
- newParent = newParent->tqparent();
+ newParent = newParent->parent();
}
- // TODO if the mouse is on the left side under the tqparent but not under the sibling item, use the tqparent
+ // TODO if the mouse is on the left side under the parent but not under the sibling item, use the parent
/* if( newParent == 0 && vp.x() >= 2*treeStepSize() ) {
TQPoint p = vp;
int height = 0;
@@ -397,7 +397,7 @@ void ReplayGainFileList::contentsDropEvent( TQDropEvent *e )
p.setY( p.y() - height );
ReplayGainFileListItem* it = itemAt( p );
if( it && it->type() != ReplayGainFileListItem::Album ) {
- newParent = it->tqparent();
+ newParent = it->parent();
}
else if( it ) {
newParent = it;
@@ -711,13 +711,13 @@ void ReplayGainFileList::addFile( const TQString& file )
} // |
} // |
if( tags ) { // <--'
- ReplayGainFileListItem* tqparent = new ReplayGainFileListItem( this );
- //tqparent->setText( 0, tags->artist+" - "+tags->album );
- tqparent->setText( columnByName(i18n("File")), tags->album );
- tqparent->setType( ReplayGainFileListItem::Album );
- tqparent->mimeType = mimeType;
- tqparent->fileFormat = fileFormat;
- ReplayGainFileListItem* item = new ReplayGainFileListItem( tqparent );
+ ReplayGainFileListItem* parent = new ReplayGainFileListItem( this );
+ //parent->setText( 0, tags->artist+" - "+tags->album );
+ parent->setText( columnByName(i18n("File")), tags->album );
+ parent->setType( ReplayGainFileListItem::Album );
+ parent->mimeType = mimeType;
+ parent->fileFormat = fileFormat;
+ ReplayGainFileListItem* item = new ReplayGainFileListItem( parent );
item->originalFileFormat = filePathName.right( filePathName.length() - filePathName.findRev(".") - 1 );
item->filePathName = filePathName;
item->mimeType = mimeType;
@@ -1074,9 +1074,9 @@ void ReplayGainFileList::processNextFile()
ReplayGainFileListItem* currentSubItem = 0;
if( !currentItem ) { currentItem = firstChild(); }
- else if( currentItem->type() == ReplayGainFileListItem::File && currentItem->tqparent() == 0 ) { currentItem = currentItem->nextSibling(); }
+ else if( currentItem->type() == ReplayGainFileListItem::File && currentItem->parent() == 0 ) { currentItem = currentItem->nextSibling(); }
else if( currentItem->type() == ReplayGainFileListItem::Album ) { currentItem = currentItem->nextSibling(); }
- else { currentSubItem = currentItem->nextSibling(); currentItem = currentItem->tqparent(); if( !currentSubItem ) { currentItem = currentItem->nextSibling(); } }
+ else { currentSubItem = currentItem->nextSibling(); currentItem = currentItem->parent(); if( !currentSubItem ) { currentItem = currentItem->nextSibling(); } }
for( ReplayGainFileListItem* item = currentItem; item != 0; item = item->nextSibling() ) {
if( item->type() == ReplayGainFileListItem::File ) {