summaryrefslogtreecommitdiffstats
path: root/src/filelist.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:15:02 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:15:02 -0600
commit546e1d89596af9c0bd0176fb8812bf0faa00d9de (patch)
tree74fc0f8f1440160dd28fc70cae5b5f4f73960bee /src/filelist.cpp
parentef9e895fa20a6118dacbd997a1ed7486e14b8ec6 (diff)
downloadsoundkonverter-546e1d89596af9c0bd0176fb8812bf0faa00d9de.tar.gz
soundkonverter-546e1d89596af9c0bd0176fb8812bf0faa00d9de.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/filelist.cpp')
-rwxr-xr-xsrc/filelist.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/filelist.cpp b/src/filelist.cpp
index de6e46e..771ff47 100755
--- a/src/filelist.cpp
+++ b/src/filelist.cpp
@@ -152,11 +152,11 @@ FileList::FileList( CDManager* _cdManager, TagEngine* _tagEngine, Config* _confi
grid->setRowStretch( 2, 1 );
grid->setColStretch( 0, 1 );
grid->setColStretch( 2, 1 );
- pScantqStatus = new KProgress( this, "pScanStatus" );
- pScantqStatus->setMinimumHeight( pScantqStatus->height() );
- pScantqStatus->setFormat( "%v / %m" );
- pScantqStatus->hide();
- grid->addWidget( pScantqStatus, 1, 1 );
+ pScanStatus = new KProgress( this, "pScanStatus" );
+ pScanStatus->setMinimumHeight( pScanStatus->height() );
+ pScanStatus->setFormat( "%v / %m" );
+ pScanStatus->hide();
+ grid->addWidget( pScanStatus, 1, 1 );
grid->setColStretch( 1, 2 );
contextMenu = new KPopupMenu( this );
@@ -226,9 +226,9 @@ void FileList::viewportPaintEvent( TQPaintEvent* e )
const uint w = bubble->width() + 20;
const uint h = bubble->height() + 20;
- p.setBrush( tqcolorGroup().background() );
+ p.setBrush( colorGroup().background() );
p.drawRoundRect( 15, 15, w, h, (8*200)/w, (8*200)/h );
- bubble->draw( &p, 20, 20, TQRect(), tqcolorGroup() );
+ bubble->draw( &p, 20, 20, TQRect(), colorGroup() );
}
}
@@ -379,15 +379,15 @@ int FileList::listDir( const TQString& directory, TQStringList filter, bool recu
else if( !fileInfo.isDir() || !recursive ) { // NOTE checking for isFile may not work with all file names
// NOTE filter feature
for( TQStringList::Iterator jt = filter.begin(); jt != filter.end(); ++jt ) {
- if( (*it).tqendsWith("."+(*jt),false) ) {
+ if( (*it).endsWith("."+(*jt),false) ) {
count++;
- pScantqStatus->setTotalSteps( count );
+ pScanStatus->setTotalSteps( count );
break;
}
}
if( filter.first() == "" ) {
count++;
- pScantqStatus->setTotalSteps( count );
+ pScanStatus->setTotalSteps( count );
}
}
}
@@ -398,17 +398,17 @@ int FileList::listDir( const TQString& directory, TQStringList filter, bool recu
else if( !fileInfo.isDir() || !recursive ) { // NOTE checking for isFile may not work with all file names
// NOTE filter feature
for( TQStringList::Iterator jt = filter.begin(); jt != filter.end(); ++jt ) {
- if( (*it).tqendsWith("."+(*jt),false) ) {
+ if( (*it).endsWith("."+(*jt),false) ) {
addFiles( KURL::encode_string(directory + "/" + *it) );
count++;
- pScantqStatus->setProgress( count );
+ pScanStatus->setProgress( count );
break;
}
}
if( filter.first() == "" ) {
addFiles( KURL::encode_string(directory + "/" + *it) );
count++;
- pScantqStatus->setProgress( count );
+ pScanStatus->setProgress( count );
}
}
}
@@ -567,15 +567,15 @@ void FileList::addFiles( TQStringList fileList, FileListItem* after, bool enable
void FileList::addDir( const TQString& directory, const TQStringList& filter, bool recursive )
{
- pScantqStatus->setProgress( 0 );
- pScantqStatus->setTotalSteps( 0 );
- pScantqStatus->show(); // show the status while scanning the directories
+ pScanStatus->setProgress( 0 );
+ pScanStatus->setTotalSteps( 0 );
+ pScanStatus->show(); // show the status while scanning the directories
kapp->processEvents();
int count = listDir( directory, filter, recursive, true );
listDir( directory, filter, recursive );
- pScantqStatus->hide(); // hide the status bar, when the scan is done
+ pScanStatus->hide(); // hide the status bar, when the scan is done
}
void FileList::addTracks( const TQString& device, TQValueList<int> trackList )