summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-19 11:40:56 -0600
committerTimothy Pearson <[email protected]>2011-12-19 11:40:56 -0600
commit6afce6c4bc7ea82d8644358216a72a585bffaf0a (patch)
tree4ace829a6b7d358d7d7a7a99b74891d211b8a3d5
parent546e1d89596af9c0bd0176fb8812bf0faa00d9de (diff)
downloadsoundkonverter-6afce6c4bc7ea82d8644358216a72a585bffaf0a.tar.gz
soundkonverter-6afce6c4bc7ea82d8644358216a72a585bffaf0a.zip
Remove additional unneeded tq method conversions
-rwxr-xr-xsrc/cddb.cpp4
-rwxr-xr-xsrc/configpluginspage.cpp6
-rwxr-xr-xsrc/convert.cpp20
-rwxr-xr-xsrc/filelist.cpp26
-rwxr-xr-xsrc/filelist.h2
-rwxr-xr-xsrc/logger.cpp4
-rwxr-xr-xsrc/logviewer.cpp10
-rwxr-xr-xsrc/logviewer.h2
-rw-r--r--src/metadata/m4a/mp4file.h2
-rw-r--r--src/metadata/trueaudio/ttafile.h2
-rw-r--r--src/metadata/wavpack/wvfile.h2
-rwxr-xr-xsrc/optionsdetailed.cpp4
-rwxr-xr-xsrc/optionseditor.cpp2
-rwxr-xr-xsrc/optionssimple.cpp2
-rwxr-xr-xsrc/replaygainfilelist.cpp68
-rwxr-xr-xsrc/replaygainfilelist.h2
16 files changed, 79 insertions, 79 deletions
diff --git a/src/cddb.cpp b/src/cddb.cpp
index c1ef793..cbc936c 100755
--- a/src/cddb.cpp
+++ b/src/cddb.cpp
@@ -377,7 +377,7 @@ CDDB::parse_read_resp(TQTextStream *stream, TQTextStream *write_stream)
for (int i = 0; i < m_tracks; i++)
{
if (m_names[i].isEmpty())
- m_names[i] += i18n("Track %1").tqarg(i);
+ m_names[i] += i18n("Track %1").arg(i);
//m_names[i].replace(TQRegExp("/"), "%2f");
si = m_names[i].find(" - ");
if (si < 0)
@@ -423,7 +423,7 @@ CDDB::searchLocal(unsigned int id, TQFile *ret_file)
{
TQDir dir;
TQString filename;
- filename = TQString("%1").tqarg(id, 0, 16).rightJustify(8, '0');
+ filename = TQString("%1").arg(id, 0, 16).rightJustify(8, '0');
TQStringList::ConstIterator it;
for (it = cddb_dirs.begin(); it != cddb_dirs.end(); ++it)
{
diff --git a/src/configpluginspage.cpp b/src/configpluginspage.cpp
index 5502ea6..bab0491 100755
--- a/src/configpluginspage.cpp
+++ b/src/configpluginspage.cpp
@@ -207,19 +207,19 @@ void ConfigPluginsPage::refreshPlugins()
TQValueList<ConvertPlugin*> converters = config->allConverters();
for( TQValueList<ConvertPlugin*>::Iterator it = converters.begin(); it != converters.end(); ++it ) {
lPlugins->insertItem( (*it)->info.name + " v. " + TQString::number((*it)->info.version) );
- //lPlugins->insertItem( i18n("%1, Version: %2").tqarg((*it)->info.name).tqarg((*it)->info.version) );
+ //lPlugins->insertItem( i18n("%1, Version: %2").arg((*it)->info.name).arg((*it)->info.version) );
}
TQValueList<ReplayGainPlugin*> replaygains = config->allReplayGains();
for( TQValueList<ReplayGainPlugin*>::Iterator it = replaygains.begin(); it != replaygains.end(); ++it ) {
lPlugins->insertItem( (*it)->info.name + " v. " + TQString::number((*it)->info.version) );
- //lPlugins->insertItem( i18n("%1, Version: %2").tqarg((*it)->info.name).tqarg((*it)->info.version) );
+ //lPlugins->insertItem( i18n("%1, Version: %2").arg((*it)->info.name).arg((*it)->info.version) );
}
TQValueList<RipperPlugin*> rippers = config->allRippers();
for( TQValueList<RipperPlugin*>::Iterator it = rippers.begin(); it != rippers.end(); ++it ) {
lPlugins->insertItem( (*it)->info.name + " v. " + TQString::number((*it)->info.version) );
- //lPlugins->insertItem( i18n("%1, Version: %2").tqarg((*it)->info.name).tqarg((*it)->info.version) );
+ //lPlugins->insertItem( i18n("%1, Version: %2").arg((*it)->info.name).arg((*it)->info.version) );
}
}
diff --git a/src/convert.cpp b/src/convert.cpp
index 9f5000a..5b9b2b5 100755
--- a/src/convert.cpp
+++ b/src/convert.cpp
@@ -161,12 +161,12 @@ void Convert::rip( ConvertItem* item )
TQString wavFile;
TQString args = job->device;
if(!args.isEmpty())
- args = TQString("?device=%1").tqarg(args);
+ args = TQString("?device=%1").arg(args);
args = args+"&fileNameTemplate=Track %{number}";
if(job->track < 10)
- wavFile = TQString("audiocd:/Wav/Track 0%1.wav%2").tqarg(job->track).tqarg(args);
+ wavFile = TQString("audiocd:/Wav/Track 0%1.wav%2").arg(job->track).arg(args);
else
- wavFile = TQString("audiocd:/Wav/Track %1.wav%2").tqarg(job->track).tqarg(args);
+ wavFile = TQString("audiocd:/Wav/Track %1.wav%2").arg(job->track).arg(args);
*/
RipperPlugin* plugin = config->getCurrentRipper();
@@ -888,7 +888,7 @@ void Convert::moveFinished( KIO::Job* job )
}
else if( (*item)->state == ConvertItem::put ) {
if( job->error() != 0 ) {
- logger->log( (*item)->logID, i18n("Could not write to file: `%1'").tqarg(OutputDirectory::calcPath((*item)->fileListItem,config)) );
+ logger->log( (*item)->logID, i18n("Could not write to file: `%1'").arg(OutputDirectory::calcPath((*item)->fileListItem,config)) );
emit uncountTime( (*item)->getTime );
emit uncountTime( (*item)->getCorrectionTime );
emit uncountTime( (*item)->ripTime );
@@ -1201,7 +1201,7 @@ void Convert::processExit( KProcess* proc )
}
if( (*item)->state == ConvertItem::put ) {
if( proc->signalled() ) {
- logger->log( (*item)->logID, i18n("Could not write to file: `%1'").tqarg(OutputDirectory::calcPath((*item)->fileListItem,config)) );
+ logger->log( (*item)->logID, i18n("Could not write to file: `%1'").arg(OutputDirectory::calcPath((*item)->fileListItem,config)) );
emit uncountTime( (*item)->getTime );
emit uncountTime( (*item)->getCorrectionTime );
emit uncountTime( (*item)->ripTime );
@@ -1213,7 +1213,7 @@ void Convert::processExit( KProcess* proc )
return;
}
if( !proc->normalExit() ) {
- logger->log( (*item)->logID, i18n("Could not write to file: `%1'").tqarg(OutputDirectory::calcPath((*item)->fileListItem,config)) );
+ logger->log( (*item)->logID, i18n("Could not write to file: `%1'").arg(OutputDirectory::calcPath((*item)->fileListItem,config)) );
emit uncountTime( (*item)->getTime );
emit uncountTime( (*item)->getCorrectionTime );
emit uncountTime( (*item)->ripTime );
@@ -1289,14 +1289,14 @@ void Convert::processExit( KProcess* proc )
void Convert::add( FileListItem* item )
{
- logger->log( 1000, i18n("Adding new item to conversion list: `%1'").tqarg(item->options.filePathName) );
+ logger->log( 1000, i18n("Adding new item to conversion list: `%1'").arg(item->options.filePathName) );
// append the item to the item list and store the iterator
TQValueList<ConvertItem*>::Iterator newItem = items.append( new ConvertItem( item ) );
// register at the logger
(*newItem)->logID = logger->registerProcess( item->options.filePathName );
- logger->log( 1000, " " + i18n("Got log ID: %1").tqarg((*newItem)->logID) );
+ logger->log( 1000, " " + i18n("Got log ID: %1").arg((*newItem)->logID) );
logger->log( (*newItem)->logID, "Mime Type: " + (*newItem)->fileListItem->mimeType );
if( (*newItem)->fileListItem->tags ) logger->log( (*newItem)->logID, i18n("Tags successfully read") );
@@ -1465,14 +1465,14 @@ void Convert::remove( ConvertItem* item, int state )
//emit uncountTime( item->getTime + item->getCorrectionTime + item->ripTime +
// item->decodeTime + item->encodeTime + item->replaygainTime );
- logger->log( item->logID, i18n("Removing file from conversion list. Exit code %1").tqarg(state) );
+ logger->log( item->logID, i18n("Removing file from conversion list. Exit code %1").arg(state) );
if( item->fileListItem->notify != "" ) {
TQString command = item->fileListItem->notify;
command.replace( "%u", item->fileListItem->url );
command.replace( "%i", item->fileListItem->options.filePathName.replace(" ","%20") );
command.replace( "%o", item->outputFilePathName.replace(" ","%20") );
- logger->log( item->logID, " "+i18n("Executing command: \"%1\"").tqarg(command) );
+ logger->log( item->logID, " "+i18n("Executing command: \"%1\"").arg(command) );
notify.clearArguments();
TQString paramSplinter;
// FIXME split correct (strings with spaces are splited by mistake)
diff --git a/src/filelist.cpp b/src/filelist.cpp
index 771ff47..60ddcbc 100755
--- a/src/filelist.cpp
+++ b/src/filelist.cpp
@@ -59,7 +59,7 @@ FileListItem::FileListItem( KListView* parent )
FileListItem::~FileListItem()
{}
-void FileListItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment )
+void FileListItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment )
{
// NOTE speed up this function
// NOTE calculate the red color
@@ -72,14 +72,14 @@ void FileListItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column,
int margin = listView()->itemMargin();
int w = width - 2*margin;
int h = height();
- TQRect textRect = p->boundingRect( margin, 0, w, h, tqalignment, text(column) );
+ TQRect textRect = p->boundingRect( margin, 0, w, h, alignment, text(column) );
if( textRect.width() > w ) {
- tqalignment = TQt::AlignRight | TQt::SingleLine;
+ alignment = TQt::AlignRight | TQt::SingleLine;
}
/*if ( textRect.width() <= w ) {
- p->drawText( margin, 0, w, h, tqalignment | TQt::SingleLine | TQt::ExpandTabs, text(column), -1 );
+ p->drawText( margin, 0, w, h, alignment | TQt::SingleLine | TQt::ExpandTabs, text(column), -1 );
}
else {
textRect = p->boundingRect( margin, 0, w, h, TQt::AlignLeft, "... " );
@@ -90,21 +90,21 @@ void FileListItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column,
if( isSelected() && converting ) {
_cg.setColor( TQColorGroup::Highlight, TQColor( 215, 62, 62 ) );
- TQListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ TQListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
else if( converting && column != listView()->sortColumn() ) {
_cg.setColor( TQColorGroup::Base, TQColor( 255, 234, 234 ) );
- TQListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ TQListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
else if( converting && column == listView()->sortColumn() ) {
_cg.setColor( TQColorGroup::Base, TQColor( 247, 227, 227 ) );
- TQListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ TQListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
- KListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ KListViewItem::paintCell( p, _cg, column, width, alignment );
}
/*void FileListItem::updateOutputCell()
@@ -587,7 +587,7 @@ void FileList::addTracks( const TQString& device, TQValueList<int> trackList )
// if( newItem->options.outputOptions.mode != OutputDirectory::Specify ) newItem->options.outputOptions.mode = OutputDirectory::MetaData;
newItem->notify = notify;
newItem->track = (*it);
- newItem->fileName = i18n("Audio CD (%1)").tqarg(device) + ": " + i18n("Track") + TQString().sprintf(" %02i",newItem->track);
+ newItem->fileName = i18n("Audio CD (%1)").arg(device) + ": " + i18n("Track") + TQString().sprintf(" %02i",newItem->track);
newItem->mimeType = "application/x-cda";
newItem->fileFormat = "cda";
newItem->local = true;
@@ -602,7 +602,7 @@ void FileList::addTracks( const TQString& device, TQValueList<int> trackList )
// logger->log( 1000, " " + i18n("Tags successfully read") );
newItem->time = newItem->tags->length;
newItem->options.filePathName = TQDir::homeDirPath() + "/" + TQString().sprintf("%02i - ",newItem->track) + newItem->tags->title + "." + newItem->fileFormat;
- newItem->fileName = i18n("Audio CD (%1)").tqarg(device) + ": " + TQString().sprintf("%02i - ",newItem->track) + newItem->tags->title;
+ newItem->fileName = i18n("Audio CD (%1)").arg(device) + ": " + TQString().sprintf("%02i - ",newItem->track) + newItem->tags->title;
}
updateItem( newItem );
emit increaseTime( newItem->time );
@@ -612,13 +612,13 @@ void FileList::addTracks( const TQString& device, TQValueList<int> trackList )
void FileList::addDisc( const TQString& device )
{
-// logger->log( 1000, i18n("Adding full audio CD (%1)").tqarg(device) );
+// logger->log( 1000, i18n("Adding full audio CD (%1)").arg(device) );
FileListItem* newItem = new FileListItem( this, lastItem() );
newItem->options = options->getCurrentOptions();
// if( newItem->options.outputOptions.mode != OutputDirectory::Specify ) newItem->options.outputOptions.mode = OutputDirectory::MetaData;
newItem->notify = notify;
newItem->track = 0;
- newItem->fileName = i18n("Full audio CD (%1)").tqarg(device);
+ newItem->fileName = i18n("Full audio CD (%1)").arg(device);
newItem->mimeType = "application/x-cda";
newItem->fileFormat = "cda";
newItem->local = true;
@@ -633,7 +633,7 @@ void FileList::addDisc( const TQString& device )
// logger->log( 1000, " " + i18n("Tags successfully read") );
newItem->time = newItem->tags->length;
newItem->options.filePathName = TQDir::homeDirPath() + newItem->tags->title + "." + newItem->fileFormat;
- newItem->fileName = i18n("Full audio CD (%1)").tqarg(device) + ": " + newItem->tags->title;
+ newItem->fileName = i18n("Full audio CD (%1)").arg(device) + ": " + newItem->tags->title;
}
updateItem( newItem );
emit increaseTime( newItem->time );
diff --git a/src/filelist.h b/src/filelist.h
index 3aae97f..272dd0c 100755
--- a/src/filelist.h
+++ b/src/filelist.h
@@ -50,7 +50,7 @@ public:
*/
virtual ~FileListItem();
- virtual void paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int tqalignment );
+ virtual void paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int alignment );
//void updateOutputCell();
//void updateOptionsCell();
diff --git a/src/logger.cpp b/src/logger.cpp
index 27438b7..5566c07 100755
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -22,7 +22,7 @@ Logger::Logger()
(*item)->id = 1000;
(*item)->completed = true;
(*item)->state = 1;
- (*item)->file.setName( locateLocal("data",TQString("soundkonverter/log/%1.log").tqarg((*item)->id)) );
+ (*item)->file.setName( locateLocal("data",TQString("soundkonverter/log/%1.log").arg((*item)->id)) );
// TODO error handling
(*item)->file.open( IO_WriteOnly );
(*item)->textStream.setDevice( TQT_TQIODEVICE(&((*item)->file)) );
@@ -52,7 +52,7 @@ int Logger::registerProcess( const TQString& filename )
(*item)->filename = filename;
(*item)->id = getNewID();
(*item)->completed = false;
- (*item)->file.setName( locateLocal("data",TQString("soundkonverter/log/%1.log").tqarg((*item)->id)) );
+ (*item)->file.setName( locateLocal("data",TQString("soundkonverter/log/%1.log").arg((*item)->id)) );
// TODO error handling
(*item)->file.open( IO_WriteOnly );
(*item)->textStream.setDevice( TQT_TQIODEVICE(&((*item)->file)) );
diff --git a/src/logviewer.cpp b/src/logviewer.cpp
index 5017a02..765acf8 100755
--- a/src/logviewer.cpp
+++ b/src/logviewer.cpp
@@ -31,7 +31,7 @@ LogViewerItem::LogViewerItem( LogViewerItem* parent, LogViewerItem* after, TQStr
LogViewerItem::~LogViewerItem()
{}
-void LogViewerItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment )
+void LogViewerItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment )
{
// NOTE calculate the red color
@@ -40,21 +40,21 @@ void LogViewerItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column,
if( isSelected() && converting ) {
_cg.setColor( TQColorGroup::Highlight, TQColor( 215, 62, 62 ) );
- TQListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ TQListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
else if( converting && column != listView()->sortColumn() ) {
_cg.setColor( TQColorGroup::Base, TQColor( 255, 234, 234 ) );
- TQListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ TQListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
else if( converting && column == listView()->sortColumn() ) {
_cg.setColor( TQColorGroup::Base, TQColor( 247, 227, 227 ) );
- TQListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ TQListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
- KListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ KListViewItem::paintCell( p, _cg, column, width, alignment );
}
diff --git a/src/logviewer.h b/src/logviewer.h
index d58c51f..50da656 100755
--- a/src/logviewer.h
+++ b/src/logviewer.h
@@ -39,7 +39,7 @@ public:
*/
virtual ~LogViewerItem();
- virtual void paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int tqalignment );
+ virtual void paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int alignment );
LogViewerItem* nextSibling() const { return static_cast<LogViewerItem*>( KListViewItem::nextSibling() ); }
LogViewerItem* firstChild() const { return static_cast<LogViewerItem*>( KListViewItem::firstChild() ); }
diff --git a/src/metadata/m4a/mp4file.h b/src/metadata/m4a/mp4file.h
index c1da43d..9e40dbc 100644
--- a/src/metadata/m4a/mp4file.h
+++ b/src/metadata/m4a/mp4file.h
@@ -104,7 +104,7 @@ namespace TagLib {
/*!
* This will remove all tags.
*
- * \note This will also tqinvalidate pointers to the tags
+ * \note This will also invalidate pointers to the tags
* as their memory will be freed.
* \note In order to make the removal permanent save() still needs to be called
*/
diff --git a/src/metadata/trueaudio/ttafile.h b/src/metadata/trueaudio/ttafile.h
index 3a97a9e..2cb0785 100644
--- a/src/metadata/trueaudio/ttafile.h
+++ b/src/metadata/trueaudio/ttafile.h
@@ -154,7 +154,7 @@ namespace TagLib {
* This will remove the tags that match the OR-ed together TagTypes from the
* file. By default it removes all tags.
*
- * \note This will also tqinvalidate pointers to the tags
+ * \note This will also invalidate pointers to the tags
* as their memory will be freed.
* \note In order to make the removal permanent save() still needs to be called
*/
diff --git a/src/metadata/wavpack/wvfile.h b/src/metadata/wavpack/wvfile.h
index 18f2316..6c57f6d 100644
--- a/src/metadata/wavpack/wvfile.h
+++ b/src/metadata/wavpack/wvfile.h
@@ -136,7 +136,7 @@ namespace TagLib {
* This will remove the tags that match the OR-ed together TagTypes from the
* file. By default it removes all tags.
*
- * \note This will also tqinvalidate pointers to the tags
+ * \note This will also invalidate pointers to the tags
* as their memory will be freed.
* \note In order to make the removal permanent save() still needs to be called
*/
diff --git a/src/optionsdetailed.cpp b/src/optionsdetailed.cpp
index aa1ad24..f959600 100755
--- a/src/optionsdetailed.cpp
+++ b/src/optionsdetailed.cpp
@@ -686,9 +686,9 @@ void OptionsDetailed::qualityChanged()
}
}
- TQToolTip::add( iQuality, i18n("This is a relative quality between 0 and 100.\nThe higher this number the higher is the quality.\nsoundKonverter will convert it into the file format's quality format.\nSee the \"What's this?\" for more informations.\n\nCurrent parameter: \"%1\"").tqarg(quality) );
+ TQToolTip::add( iQuality, i18n("This is a relative quality between 0 and 100.\nThe higher this number the higher is the quality.\nsoundKonverter will convert it into the file format's quality format.\nSee the \"What's this?\" for more informations.\n\nCurrent parameter: \"%1\"").arg(quality) );
// TQToolTip toolTip( iQuality );
-// toolTip.tip( i18n("Current parameter: \"%1\"").tqarg(quality) );
+// toolTip.tip( i18n("Current parameter: \"%1\"").arg(quality) );
}
}
diff --git a/src/optionseditor.cpp b/src/optionseditor.cpp
index c31597d..2b18cbe 100755
--- a/src/optionseditor.cpp
+++ b/src/optionseditor.cpp
@@ -384,7 +384,7 @@ void OptionsEditor::itemsSelected( TQValueList<FileListItem*> items )
}
}
else {
- setCaption( i18n("%1 Files").tqarg(items.count()) );
+ setCaption( i18n("%1 Files").arg(items.count()) );
TQValueList<FileListItem*>::Iterator it = items.begin();
ConversionOptions cOptions = (*it)->options;
TQString title = ( (*it)->tags == 0 ) ? "" : (*it)->tags->title;
diff --git a/src/optionssimple.cpp b/src/optionssimple.cpp
index cfc4a55..839da1b 100755
--- a/src/optionssimple.cpp
+++ b/src/optionssimple.cpp
@@ -202,7 +202,7 @@ void OptionsSimple::profileInfo()
void OptionsSimple::profileRemove()
{
int ret = KMessageBox::questionYesNo( this,
- i18n("Do you really want to remove the profile: %1").tqarg(cProfile->currentText()),
+ i18n("Do you really want to remove the profile: %1").arg(cProfile->currentText()),
i18n("Remove profile?") );
if( ret != KMessageBox::Yes ) return;
diff --git a/src/replaygainfilelist.cpp b/src/replaygainfilelist.cpp
index 8c8e70d..7d573d3 100755
--- a/src/replaygainfilelist.cpp
+++ b/src/replaygainfilelist.cpp
@@ -63,7 +63,7 @@ ReplayGainFileListItem::ReplayGainFileListItem( ReplayGainFileListItem* parent )
ReplayGainFileListItem::~ReplayGainFileListItem()
{}
-void ReplayGainFileListItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment )
+void ReplayGainFileListItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment )
{
// NOTE speed up this function
// NOTE calculate the red color
@@ -76,46 +76,46 @@ void ReplayGainFileListItem::paintCell( TQPainter *p, const TQColorGroup &cg, in
int margin = listView()->itemMargin();
int w = width - 2*margin;
int h = height();
- TQRect textRect = p->boundingRect( margin, 0, w, h, tqalignment, text(column) );
+ TQRect textRect = p->boundingRect( margin, 0, w, h, alignment, text(column) );
if( textRect.width() > w ) {
- tqalignment = TQt::AlignRight | TQt::SingleLine;
+ alignment = TQt::AlignRight | TQt::SingleLine;
}
}
if( isSelected() && addingReplayGain ) {
_cg.setColor( TQColorGroup::Highlight, TQColor( 215, 62, 62 ) );
- TQListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ TQListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
else if( addingReplayGain && column != listView()->sortColumn() ) {
_cg.setColor( TQColorGroup::Base, TQColor( 255, 234, 234 ) );
- TQListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ TQListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
else if( addingReplayGain && column == listView()->sortColumn() ) {
_cg.setColor( TQColorGroup::Base, TQColor( 247, 227, 227 ) );
- TQListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ TQListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
if( isSelected() && queued ) {
_cg.setColor( TQColorGroup::Highlight, TQColor( 230, 232, 100 ) );
- TQListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ TQListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
else if( queued && column != listView()->sortColumn() ) {
_cg.setColor( TQColorGroup::Base, TQColor( 255, 255, 190 ) );
- TQListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ TQListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
else if( queued && column == listView()->sortColumn() ) {
_cg.setColor( TQColorGroup::Base, TQColor( 255, 243, 168 ) );
- TQListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ TQListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
- KListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ KListViewItem::paintCell( p, _cg, column, width, alignment );
}
void ReplayGainFileListItem::setType( Type type )
@@ -836,18 +836,18 @@ void ReplayGainFileList::calcSelectedItemsGain()
if( item->type() == ReplayGainFileListItem::File ) {
if( item->isSelected() ) {
item->queued = true;
- item->tqrepaint();
+ item->repaint();
item->mode = ReplayGainFileListItem::force;
}
}
else {
if( item->isSelected() ) {
item->queued = true;
- item->tqrepaint();
+ item->repaint();
item->mode = ReplayGainFileListItem::force;
for( ReplayGainFileListItem* sub_item = item->firstChild(); sub_item != 0; sub_item = sub_item->nextSibling() ) {
sub_item->queued = true;
- sub_item->tqrepaint();
+ sub_item->repaint();
sub_item->mode = ReplayGainFileListItem::force;
}
}
@@ -855,11 +855,11 @@ void ReplayGainFileList::calcSelectedItemsGain()
for( ReplayGainFileListItem* sub_item = item->firstChild(); sub_item != 0; sub_item = sub_item->nextSibling() ) {
if( sub_item->isSelected() ) {
item->queued = true;
- item->tqrepaint();
+ item->repaint();
item->mode = ReplayGainFileListItem::force;
for( ReplayGainFileListItem* sub_item2 = item->firstChild(); sub_item2 != 0; sub_item2 = sub_item2->nextSibling() ) {
sub_item2->queued = true;
- sub_item2->tqrepaint();
+ sub_item2->repaint();
sub_item2->mode = ReplayGainFileListItem::force;
}
break;
@@ -878,18 +878,18 @@ void ReplayGainFileList::removeSelectedItemsGain()
if( item->type() == ReplayGainFileListItem::File ) {
if( item->isSelected() && !item->addingReplayGain ) {
item->queued = true;
- item->tqrepaint();
+ item->repaint();
item->mode = ReplayGainFileListItem::remove;
}
}
else {
if( item->isSelected() && !item->addingReplayGain ) {
item->queued = true;
- item->tqrepaint();
+ item->repaint();
item->mode = ReplayGainFileListItem::remove;
for( ReplayGainFileListItem* sub_item = item->firstChild(); sub_item != 0; sub_item = sub_item->nextSibling() ) {
sub_item->queued = true;
- sub_item->tqrepaint();
+ sub_item->repaint();
sub_item->mode = ReplayGainFileListItem::remove;
}
}
@@ -897,7 +897,7 @@ void ReplayGainFileList::removeSelectedItemsGain()
for( ReplayGainFileListItem* sub_item = item->firstChild(); sub_item != 0; sub_item = sub_item->nextSibling() ) {
if( sub_item->isSelected() && !sub_item->addingReplayGain ) {
sub_item->queued = true;
- sub_item->tqrepaint();
+ sub_item->repaint();
sub_item->mode = ReplayGainFileListItem::remove;
}
}
@@ -926,12 +926,12 @@ void ReplayGainFileList::calcReplayGain( ReplayGainFileListItem* item )
if( item->type() == ReplayGainFileListItem::Album ) {
item->queued = false;
item->addingReplayGain = true;
- item->tqrepaint();
+ item->repaint();
for( ReplayGainFileListItem* sub_item = item->firstChild(); sub_item != 0; sub_item = sub_item->nextSibling() ) {
if( sub_item->queued && sub_item->mode & ReplayGainFileListItem::force ) force = true; // NOTE can this be replaced by checking item?
sub_item->queued = false;
sub_item->addingReplayGain = true;
- sub_item->tqrepaint();
+ sub_item->repaint();
fileList += sub_item->filePathName;
files++;
@@ -953,10 +953,10 @@ void ReplayGainFileList::calcReplayGain( ReplayGainFileListItem* item )
else {
logger->processCompleted( logID, 0 );
item->addingReplayGain = false;
- item->tqrepaint();
+ item->repaint();
for( ReplayGainFileListItem* sub_item = item->firstChild(); sub_item != 0; sub_item = sub_item->nextSibling() ) {
sub_item->addingReplayGain = false;
- sub_item->tqrepaint();
+ sub_item->repaint();
}
processNextFile();
}
@@ -966,7 +966,7 @@ void ReplayGainFileList::calcReplayGain( ReplayGainFileListItem* item )
item->queued = false;
item->addingReplayGain = true;
- item->tqrepaint();
+ item->repaint();
files = 1;
timeCount = item->time;
@@ -989,13 +989,13 @@ void ReplayGainFileList::removeReplayGain( ReplayGainFileListItem* item )
if( item->type() == ReplayGainFileListItem::File ) {
item->queued = false;
item->addingReplayGain = true;
- item->tqrepaint();
+ item->repaint();
timeCount = item->time;
replayGain->apply( item->filePathName, item->mimeType, process, logID, ReplayGain::remove );
}
else {
item->queued = false;
- item->tqrepaint();
+ item->repaint();
processNextFile();
}
}
@@ -1201,43 +1201,43 @@ void ReplayGainFileList::processExit( KProcess* proc )
if( item->addingReplayGain ) {
processedTime += item->time;
item->addingReplayGain = false;
- item->tqrepaint();
+ item->repaint();
item->updateReplayGainCells( tagEngine->readTags(KURL::decode_string(item->filePathName)) );
}
if( item->queued && proc->signalled() ) {
item->queued = false;
- item->tqrepaint();
+ item->repaint();
}
}
else {
if( item->addingReplayGain ) {
item->addingReplayGain = false;
- item->tqrepaint();
+ item->repaint();
for( ReplayGainFileListItem* sub_item = item->firstChild(); sub_item != 0; sub_item = sub_item->nextSibling() ) {
processedTime += sub_item->time;
sub_item->addingReplayGain = false;
- sub_item->tqrepaint();
+ sub_item->repaint();
sub_item->updateReplayGainCells( tagEngine->readTags(KURL::decode_string(sub_item->filePathName)) );
}
}
if( item->queued && proc->signalled() ) {
item->queued = false;
- item->tqrepaint();
+ item->repaint();
for( ReplayGainFileListItem* sub_item = item->firstChild(); sub_item != 0; sub_item = sub_item->nextSibling() ) {
sub_item->queued = false;
- sub_item->tqrepaint();
+ sub_item->repaint();
}
}
for( ReplayGainFileListItem* sub_item = item->firstChild(); sub_item != 0; sub_item = sub_item->nextSibling() ) {
if( sub_item->addingReplayGain ) {
processedTime += sub_item->time;
sub_item->addingReplayGain = false;
- sub_item->tqrepaint();
+ sub_item->repaint();
sub_item->updateReplayGainCells( tagEngine->readTags(KURL::decode_string(sub_item->filePathName)) );
}
if( sub_item->queued && proc->signalled() ) {
sub_item->queued = false;
- sub_item->tqrepaint();
+ sub_item->repaint();
}
}
}
diff --git a/src/replaygainfilelist.h b/src/replaygainfilelist.h
index f888cb5..2be294d 100755
--- a/src/replaygainfilelist.h
+++ b/src/replaygainfilelist.h
@@ -66,7 +66,7 @@ public:
*/
virtual ~ReplayGainFileListItem();
- virtual void paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int tqalignment );
+ virtual void paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int alignment );
int compare( TQListViewItem* item, int column, bool ascending ) const;