summaryrefslogtreecommitdiffstats
path: root/kaudiocreator/tracksimp.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
commitb1057f437bf65300831a0ccb45b920787c6b318d (patch)
treef8a73db06ca1180d0da0ba6dfbe786197b4f4bc3 /kaudiocreator/tracksimp.cpp
parent4ddfca384ced9ad654213aef9dc2c3973720b980 (diff)
downloadtdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.tar.gz
tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.zip
TQt4 port kdemultimedia
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaudiocreator/tracksimp.cpp')
-rw-r--r--kaudiocreator/tracksimp.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kaudiocreator/tracksimp.cpp b/kaudiocreator/tracksimp.cpp
index 9a864e9d..02668821 100644
--- a/kaudiocreator/tracksimp.cpp
+++ b/kaudiocreator/tracksimp.cpp
@@ -49,8 +49,8 @@
/**
* Constructor, connect up slots and signals.
*/
-TracksImp::TracksImp( TQWidget* parent, const char* name) :
- Tracks(parent,name),
+TracksImp::TracksImp( TQWidget* tqparent, const char* name) :
+ Tracks(tqparent,name),
cddbInfo()
{
cd = new KCompactDisc;
@@ -84,7 +84,7 @@ TracksImp::~TracksImp() {
list.append(deviceCombo->currentText());
for ( int i=0; i<deviceCombo->count();i++ ) {
TQString text = deviceCombo->text(i);
- if( list.find(text) == list.end())
+ if( list.tqfind(text) == list.end())
list.append(text);
if( list.count() == 5)
break;
@@ -104,13 +104,13 @@ void TracksImp::loadSettings() {
TQStringList prefsList = Prefs::device();
TQStringList::Iterator it;
for ( it = prefsList.begin(); it != prefsList.end(); ++it ) {
- if( list.find( *it ) == list.end())
+ if( list.tqfind( *it ) == list.end())
list.append(*it);
}
// Get current list, no dups
for ( int i=0; i<deviceCombo->count();i++ ) {
TQString text = deviceCombo->text(i);
- if( list.find(text) == list.end())
+ if( list.tqfind(text) == list.end())
list.append(text);
}
@@ -198,7 +198,7 @@ void TracksImp::changeDevice(const TQString &file ) {
TQString errstring =
i18n("CDROM read or access error (or no audio disk in drive).\n"\
"Please make sure you have access permissions to:\n%1")
- .arg(file);
+ .tqarg(file);
KMessageBox::error(this, errstring, i18n("Error"));
}
}
@@ -247,8 +247,8 @@ void TracksImp::lookupCDDBDone(CDDB::Result result ) {
CDInfoList::iterator it;
TQStringList list;
for ( it = cddb_info.begin(); it != cddb_info.end(); ++it ) {
- list.append( TQString("%1, %2, %3").arg((*it).artist).arg((*it).title)
- .arg((*it).genre));
+ list.append( TQString("%1, %2, %3").tqarg((*it).artist).tqarg((*it).title)
+ .tqarg((*it).genre));
}
bool ok(false);
@@ -277,7 +277,7 @@ void TracksImp::lookupCDDBDone(CDDB::Result result ) {
}
// Some sanity provisions to ensure that the number of records matches what
- // the CD actually contains.
+ // the CD actually tqcontains.
while (info.trackInfoList.count() < cddbInfo.trackInfoList.count())
{
info.trackInfoList.append(KCDDB::TrackInfo());
@@ -378,7 +378,7 @@ void TracksImp::startSession( int encoder )
if( Prefs::promptIfIncompleteInfo() && list.count() > 0 )
{
int r = KMessageBox::questionYesNo( this,
- i18n( "Part of the album is not set: %1.\n (To change album information click the \"Edit Information\" button.)\n Would you like to rip the selected tracks anyway?").arg(list.join(", ")), i18n("Album Information Incomplete"), i18n("Rip"), KStdGuiItem::cancel() );
+ i18n( "Part of the album is not set: %1.\n (To change album information click the \"Edit Information\" button.)\n Would you like to rip the selected tracks anyway?").tqarg(list.join(", ")), i18n("Album Information Incomplete"), i18n("Rip"), KStdGuiItem::cancel() );
if( r == KMessageBox::No )
return;
@@ -417,7 +417,7 @@ void TracksImp::startSession( int encoder )
KMessageBox::information(this,
i18n("%1 Job(s) have been started. You can watch their progress in the "
- "jobs section.").arg( selected.count() ),
+ "jobs section.").tqarg( selected.count() ),
i18n("Jobs have started"), i18n("Jobs have started"));
}
@@ -496,7 +496,7 @@ void TracksImp::newAlbum()
bool isSampler = true;
for( unsigned i = 0; i < t.count(); i++ )
{
- if (t[i].title.find(" / ") == -1)
+ if (t[i].title.tqfind(" / ") == -1)
{
isSampler = false;
break;
@@ -512,7 +512,7 @@ void TracksImp::newAlbum()
if( isSampler )
{
// Support for multiple artists stripping.
- int delimiter = t[i].title.find(" / ");
+ int delimiter = t[i].title.tqfind(" / ");
Q_ASSERT( delimiter != -1 );
trackArtist = t[i].title.left(delimiter);
title = t[i].title.mid(delimiter + 3);
@@ -547,7 +547,7 @@ void TracksImp::keyPressEvent(TQKeyEvent *event)
TQListViewItem *item = trackListing->selectedItem();
if( !item ) return;
- if( event->key() == Qt::Key_F2 )
+ if( event->key() == TQt::Key_F2 )
{
item->setRenameEnabled( HEADER_TRACK_NAME, true );
item->startRename( HEADER_TRACK_NAME );