summaryrefslogtreecommitdiffstats
path: root/amarok/src/playlistbrowseritem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/src/playlistbrowseritem.cpp')
-rw-r--r--amarok/src/playlistbrowseritem.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/amarok/src/playlistbrowseritem.cpp b/amarok/src/playlistbrowseritem.cpp
index 05270649..2297d5a9 100644
--- a/amarok/src/playlistbrowseritem.cpp
+++ b/amarok/src/playlistbrowseritem.cpp
@@ -514,7 +514,7 @@ PlaylistCategory::showContextMenu( const TQPoint &position )
break;
}
name = i18n("Folder");
- if( c ) name = i18n("Folder %1").tqarg(c);
+ if( c ) name = i18n("Folder %1").arg(c);
if( tracker == firstChild() && !isCategory( tracker ) ) tracker = 0;
newFolder = new PlaylistCategory( this, tracker, name, true );
@@ -642,7 +642,7 @@ void PlaylistEntry::load()
startAnimation();
connect( &m_animationTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotAnimation()) );
- //delete all tqchildren, so that we don't duplicate things
+ //delete all children, so that we don't duplicate things
while( firstChild() )
delete firstChild();
@@ -791,7 +791,7 @@ void PlaylistEntry::customEvent( TQCustomEvent *e )
/**
* We destroy the tracks on collapsing the entry. However, if we are using dynamic mode, then we leave them
- * because adding from a custom list is problematic if the entry has no tqchildren. Using load() is not effective
+ * because adding from a custom list is problematic if the entry has no children. Using load() is not effective
* since this is a threaded operation and would require pulling apart the entire class to make it work.
*/
@@ -814,7 +814,7 @@ void PlaylistEntry::setOpen( bool open )
}
else if( !isDynamic() || !m_dynamic ) { //collapse
- //delete all tqchildren
+ //delete all children
while( firstChild() )
delete firstChild();
@@ -855,10 +855,10 @@ void PlaylistEntry::updateInfo()
TQString str = "<html><body><table width=\"100%\" border=\"0\">";
- str += body.tqarg( i18n( "Playlist" ), text(0) );
- str += body.tqarg( i18n( "Number of tracks" ), TQString::number(m_trackCount) );
- str += body.tqarg( i18n( "Length" ), MetaBundle::prettyTime( m_length ) );
- str += body.tqarg( i18n( "Location" ), m_url.prettyURL() );
+ str += body.arg( i18n( "Playlist" ), text(0) );
+ str += body.arg( i18n( "Number of tracks" ), TQString::number(m_trackCount) );
+ str += body.arg( i18n( "Length" ), MetaBundle::prettyTime( m_length ) );
+ str += body.arg( i18n( "Location" ), m_url.prettyURL() );
str += "</table></body></html>";
PlaylistBrowser::instance()->setInfo( text(0), str );
@@ -1065,7 +1065,7 @@ PlaylistTrackItem::PlaylistTrackItem( TQListViewItem *parent, TQListViewItem *af
if( p && p->text( 0 ).contains( info->artist() ) )
setText( 0, info->title() );
else
- setText( 0, i18n("%1 - %2").tqarg( info->artist(), info->title() ) );
+ setText( 0, i18n("%1 - %2").arg( info->artist(), info->title() ) );
}
const KURL &PlaylistTrackItem::url()
@@ -1121,7 +1121,7 @@ void PlaylistTrackItem::showContextMenu( const TQPoint &position )
TagDialog* dialog = new TagDialog( url() );
dialog->show();
}
- else KMessageBox::sorry( PlaylistBrowser::instance(), i18n( "This file does not exist: %1" ).tqarg( url().path() ) );
+ else KMessageBox::sorry( PlaylistBrowser::instance(), i18n( "This file does not exist: %1" ).arg( url().path() ) );
}
}
@@ -1212,7 +1212,7 @@ void StreamEntry::updateInfo()
TQString str = "<html><body><table width=\"100%\" border=\"0\">";
- str += body.tqarg( i18n( "URL" ), m_url.prettyURL() );
+ str += body.arg( i18n( "URL" ), m_url.prettyURL() );
str += "</table></body></html>";
PlaylistBrowser::instance()->setInfo( text(0), str );
@@ -2057,7 +2057,7 @@ PodcastChannel::episodeExists( const TQDomNode &xml, const int feedType )
if( !guid.isEmpty() )
{
command = TQString("SELECT id FROM podcastepisodes WHERE parent='%1' AND guid='%2';")
- .tqarg( CollectionDB::instance()->escapeString( url().url() ),
+ .arg( CollectionDB::instance()->escapeString( url().url() ),
CollectionDB::instance()->escapeString( guid ) );
TQStringList values = CollectionDB::instance()->query( command );
return !values.isEmpty();
@@ -2066,7 +2066,7 @@ PodcastChannel::episodeExists( const TQDomNode &xml, const int feedType )
TQString episodeTitle = xml.namedItem( "title" ).toElement().text();
KURL episodeURL = xml.namedItem( "enclosure" ).toElement().attribute( "url" );
command = TQString("SELECT id FROM podcastepisodes WHERE parent='%1' AND url='%2' AND title='%3';")
- .tqarg( CollectionDB::instance()->escapeString( url().url() ),
+ .arg( CollectionDB::instance()->escapeString( url().url() ),
CollectionDB::instance()->escapeString( episodeURL.url() ),
CollectionDB::instance()->escapeString( episodeTitle ) );
TQStringList values = CollectionDB::instance()->query( command );
@@ -2080,7 +2080,7 @@ PodcastChannel::episodeExists( const TQDomNode &xml, const int feedType )
if( !guid.isEmpty() )
{
command = TQString("SELECT id FROM podcastepisodes WHERE parent='%1' AND guid='%2';")
- .tqarg( CollectionDB::instance()->escapeString( url().url() ),
+ .arg( CollectionDB::instance()->escapeString( url().url() ),
CollectionDB::instance()->escapeString( guid ) );
TQStringList values = CollectionDB::instance()->query( command );
return !values.isEmpty();
@@ -2099,7 +2099,7 @@ PodcastChannel::episodeExists( const TQDomNode &xml, const int feedType )
}
command = TQString("SELECT id FROM podcastepisodes WHERE parent='%1' AND url='%2' AND title='%3';")
- .tqarg( CollectionDB::instance()->escapeString( url().url() ),
+ .arg( CollectionDB::instance()->escapeString( url().url() ),
CollectionDB::instance()->escapeString( episodeURL ),
CollectionDB::instance()->escapeString( episodeTitle ) );
TQStringList values = CollectionDB::instance()->query( command );
@@ -2136,15 +2136,15 @@ PodcastChannel::updateInfo()
TQString str = "<html><body><table width=\"100%\" border=\"0\">";
- str += body.tqarg( i18n( "Description" ), description() );
- str += body.tqarg( i18n( "Website" ), link().prettyURL() );
- str += body.tqarg( i18n( "Copyright" ), copyright() );
- str += body.tqarg( i18n( "URL" ), m_url.prettyURL() );
+ str += body.arg( i18n( "Description" ), description() );
+ str += body.arg( i18n( "Website" ), link().prettyURL() );
+ str += body.arg( i18n( "Copyright" ), copyright() );
+ str += body.arg( i18n( "URL" ), m_url.prettyURL() );
str += "</table>";
str += i18n( "<p>&nbsp;<b>Episodes</b></p><ul>" );
for( TQListViewItem *c = firstChild(); c; c = c->nextSibling() )
{
- str += TQString("<li>%1</li>").tqarg( static_cast<PodcastEpisode*>(c)->title() );
+ str += TQString("<li>%1</li>").arg( static_cast<PodcastEpisode*>(c)->title() );
}
str += "</ul></body></html>";
@@ -2565,7 +2565,7 @@ PodcastEpisode::downloadMedia()
Amarok::StatusBar::instance()->newProgressOperation( m_podcastEpisodeJob )
.setDescription( title().isEmpty()
? i18n( "Downloading Podcast Media" )
- : i18n( "Downloading Podcast \"%1\"" ).tqarg( title() ) )
+ : i18n( "Downloading Podcast \"%1\"" ).arg( title() ) )
.setAbortSlot( this, TQT_SLOT( abortDownload()) )
.setProgressSignal( m_podcastEpisodeJob, TQT_SIGNAL( percent( KIO::Job *, unsigned long ) ) );
@@ -2794,13 +2794,13 @@ PodcastEpisode::updateInfo()
TQString str = "<html><body><table width=\"100%\" border=\"0\">";
- //str += body.tqarg( i18n( "Title" ), m_bundle.title() );
- str += body.tqarg( i18n( "Description" ), m_bundle.description() );
- str += body.tqarg( i18n( "Date" ), m_bundle.date() );
- str += body.tqarg( i18n( "Author" ), m_bundle.author() );
- str += body.tqarg( i18n( "Type" ), m_bundle.type() );
- str += body.tqarg( i18n( "URL" ), m_bundle.url().prettyURL() );
- str += body.tqarg( i18n( "Local URL" ), isOnDisk() ? localUrl().prettyURL() : i18n( "n/a" ) );
+ //str += body.arg( i18n( "Title" ), m_bundle.title() );
+ str += body.arg( i18n( "Description" ), m_bundle.description() );
+ str += body.arg( i18n( "Date" ), m_bundle.date() );
+ str += body.arg( i18n( "Author" ), m_bundle.author() );
+ str += body.arg( i18n( "Type" ), m_bundle.type() );
+ str += body.arg( i18n( "URL" ), m_bundle.url().prettyURL() );
+ str += body.arg( i18n( "Local URL" ), isOnDisk() ? localUrl().prettyURL() : i18n( "n/a" ) );
str += "</table></body></html>";
PlaylistBrowser::instance()->setInfo( text(0), str );
@@ -2977,7 +2977,7 @@ class AssociatePodcastDialog : public KDialogBase
public:
AssociatePodcastDialog( PodcastEpisode *item )
- : KDialogBase( Amarok::mainWindow(), "associatepodcastdialog", true, i18n("Select Local File for %1").tqarg(item->title()), Ok|Cancel, Ok, false )
+ : KDialogBase( Amarok::mainWindow(), "associatepodcastdialog", true, i18n("Select Local File for %1").arg(item->title()), Ok|Cancel, Ok, false )
{
TQVBox* vbox = makeVBoxMainWidget();
vbox->setSpacing( KDialog::spacingHint() );
@@ -3069,7 +3069,7 @@ void SmartPlaylist::setXml( const TQDomElement &xml )
static TQStringList years;
static TQStringList labels;
- //Delete all tqchildren before
+ //Delete all children before
while( firstChild() )
delete firstChild();
@@ -3086,7 +3086,7 @@ void SmartPlaylist::setXml( const TQDomElement &xml )
genres = CollectionDB::instance()->genreList();
}
foreach( genres ) {
- m_after = new SmartPlaylist( item, m_after, i18n( "%1" ).tqarg( *it ),
+ m_after = new SmartPlaylist( item, m_after, i18n( "%1" ).arg( *it ),
TQString(queryChildren).replace(
"(*ExpandString*)", *it) );
}
@@ -3096,7 +3096,7 @@ void SmartPlaylist::setXml( const TQDomElement &xml )
artists = CollectionDB::instance()->artistList();
}
foreach( artists ) {
- m_after = new SmartPlaylist( item, m_after, i18n( "By %1" ).tqarg( *it ),
+ m_after = new SmartPlaylist( item, m_after, i18n( "By %1" ).arg( *it ),
TQString(queryChildren).replace(
"(*ExpandString*)", *it) );
}
@@ -3106,7 +3106,7 @@ void SmartPlaylist::setXml( const TQDomElement &xml )
composers = CollectionDB::instance()->composerList();
}
foreach( composers ) {
- m_after = new SmartPlaylist( item, m_after, i18n( "By %1" ).tqarg( *it ),
+ m_after = new SmartPlaylist( item, m_after, i18n( "By %1" ).arg( *it ),
TQString(queryChildren).replace(
"(*ExpandString*)", *it) );
}
@@ -3116,7 +3116,7 @@ void SmartPlaylist::setXml( const TQDomElement &xml )
albums = CollectionDB::instance()->albumList();
}
foreach( albums ) {
- m_after = new SmartPlaylist( item, m_after, i18n( "%1" ).tqarg( *it ),
+ m_after = new SmartPlaylist( item, m_after, i18n( "%1" ).arg( *it ),
TQString(queryChildren).replace(
"(*ExpandString*)", *it) );
}
@@ -3126,7 +3126,7 @@ void SmartPlaylist::setXml( const TQDomElement &xml )
years = CollectionDB::instance()->yearList();
}
foreach( years ) {
- m_after = new SmartPlaylist( item, m_after, i18n( "%1" ).tqarg( *it ),
+ m_after = new SmartPlaylist( item, m_after, i18n( "%1" ).arg( *it ),
TQString(queryChildren).replace(
"(*ExpandString*)", *it) );
}
@@ -3136,7 +3136,7 @@ void SmartPlaylist::setXml( const TQDomElement &xml )
labels = CollectionDB::instance()->labelList();
}
foreach( labels ) {
- m_after = new SmartPlaylist( item, m_after, i18n( "%1" ).tqarg( *it ), TQString(queryChildren).replace("(*ExpandString*)", *it) );
+ m_after = new SmartPlaylist( item, m_after, i18n( "%1" ).arg( *it ), TQString(queryChildren).replace("(*ExpandString*)", *it) );
}
}
}
@@ -3328,8 +3328,8 @@ SmartPlaylist::xmlToQuery(const TQDomElement &xml, bool forExpand /* = false */)
// expand by, if needed
if ( forExpand ) {
- // TODO: The most efficient way would be to pass the tqchildren the XML
- // and what to expand by, then have the tqchildren compute the query as needed.
+ // TODO: The most efficient way would be to pass the children the XML
+ // and what to expand by, then have the children compute the query as needed.
// This could save a few megs of RAM for queries, but this patch is getting
// too big already, right now. Ovy
TQDomNodeList expandbyList = xml.elementsByTagName( "expandby" );