summaryrefslogtreecommitdiffstats
path: root/amarok/src/playlistselection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/src/playlistselection.cpp')
-rw-r--r--amarok/src/playlistselection.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/amarok/src/playlistselection.cpp b/amarok/src/playlistselection.cpp
index aaad2ea0..c0e3b690 100644
--- a/amarok/src/playlistselection.cpp
+++ b/amarok/src/playlistselection.cpp
@@ -31,8 +31,8 @@
#include <klistview.h>
#include <klocale.h>
-PlaylistSelection::PlaylistSelection( TQWidget* parent, const char* name )
- : KListView( parent, name )
+PlaylistSelection::PlaylistSelection( TQWidget* tqparent, const char* name )
+ : KListView( tqparent, name )
{
addColumn( i18n("Select Playlists") );
setRootIsDecorated( true );
@@ -71,9 +71,9 @@ void PlaylistSelection::loadChildren( TQListViewItem* browserParent, TQListViewI
////////////////////////////////
namespace ConfigDynamic
{
- KDialogBase* basicDialog( TQWidget* parent )
+ KDialogBase* basicDialog( TQWidget* tqparent )
{
- KDialogBase* dialog = new KDialogBase( parent, "new dynamic", true,
+ KDialogBase* dialog = new KDialogBase( tqparent, "new dynamic", true,
i18n("Create Dynamic Playlist"),
KDialogBase::Ok | KDialogBase::Cancel,
KDialogBase::Ok, true );
@@ -82,14 +82,14 @@ namespace ConfigDynamic
NewDynamic* nd = new NewDynamic( dialog, "new dynamic");
//TQSizePolicy policy;
//policy.setHorData(TQSizePolicy::Maximum);
- //dialog->setSizePolicy(policy);
+ //dialog->tqsetSizePolicy(policy);
dialog->setMainWidget( nd );
return dialog;
}
- void dynamicDialog( TQWidget* parent )
+ void dynamicDialog( TQWidget* tqparent )
{
- KDialogBase* dialog = basicDialog( parent );
+ KDialogBase* dialog = basicDialog( tqparent );
NewDynamic* nd = static_cast<NewDynamic*>(dialog->mainWidget());
nd->m_mixLabel->setText( i18n("Add Dynamic Playlist") );
@@ -97,9 +97,9 @@ namespace ConfigDynamic
addDynamic( nd );
}
- void editDynamicPlaylist( TQWidget* parent, DynamicMode* mode )
+ void editDynamicPlaylist( TQWidget* tqparent, DynamicMode* mode )
{
- KDialogBase* dialog = basicDialog( parent );
+ KDialogBase* dialog = basicDialog( tqparent );
NewDynamic* nd = static_cast<NewDynamic*>(dialog->mainWidget());
nd->m_name->setText( mode->title() );
@@ -123,7 +123,7 @@ namespace ConfigDynamic
else //if its a suggested song or a random mix...
{
nd->selectPlaylist->hide();
- nd->layout()->remove( nd->selectPlaylist );
+ nd->tqlayout()->remove( nd->selectPlaylist );
// don't allow editing the name of the default random and suggested dynamics
nd->m_name->hide();
nd->m_playlistName_label->hide();
@@ -138,7 +138,7 @@ namespace ConfigDynamic
}
nd->updateGeometry();
- dialog->resize( nd->minimumSizeHint() );
+ dialog->resize( nd->tqminimumSizeHint() );
if( dialog->exec() == TQDialog::Accepted )
{
@@ -151,7 +151,7 @@ namespace ConfigDynamic
void loadDynamicMode( DynamicMode* saveMe, NewDynamic* dialog )
{
- saveMe->setTitle( dialog->m_name->text().replace( "\n", " " ) );
+ saveMe->setTitle( dialog->m_name->text().tqreplace( "\n", " " ) );
saveMe->setCycleTracks( dialog->m_cycleTracks->isChecked() );
saveMe->setUpcomingCount( dialog->m_upcomingIntSpinBox->value() );
saveMe->setPreviousCount( dialog->m_previousIntSpinBox->value() );
@@ -171,14 +171,14 @@ namespace ConfigDynamic
void addDynamic( NewDynamic* dialog )
{
- TQListViewItem *parent = PlaylistBrowser::instance()->getDynamicCategory();
- DynamicEntry *saveMe = new DynamicEntry( parent, 0, dialog->m_name->text().replace( "\n", " " ) );
+ TQListViewItem *tqparent = PlaylistBrowser::instance()->getDynamicCategory();
+ DynamicEntry *saveMe = new DynamicEntry( tqparent, 0, dialog->m_name->text().tqreplace( "\n", " " ) );
saveMe->setAppendType( DynamicMode::CUSTOM );
loadDynamicMode( saveMe, dialog );
- parent->sortChildItems( 0, true );
- parent->setOpen( true );
+ tqparent->sortChildItems( 0, true );
+ tqparent->setOpen( true );
PlaylistBrowser::instance()->saveDynamics();
}
@@ -187,13 +187,13 @@ namespace ConfigDynamic
////////////////////////////////
/// SelectionListItem
////////////////////////////////
-SelectionListItem::SelectionListItem( TQCheckListItem * parent, const TQString& text, TQListViewItem* browserEquivalent )
- : TQCheckListItem( parent, text, TQCheckListItem::CheckBox )
+SelectionListItem::SelectionListItem( TQCheckListItem * tqparent, const TQString& text, TQListViewItem* browserEquivalent )
+ : TQCheckListItem( tqparent, text, TQCheckListItem::CheckBox )
, m_browserEquivalent( browserEquivalent )
{ }
-SelectionListItem::SelectionListItem( TQListViewItem * parent, const TQString& text, TQListViewItem* browserEquivalent )
- : TQCheckListItem( parent, text, TQCheckListItem::CheckBox )
+SelectionListItem::SelectionListItem( TQListViewItem * tqparent, const TQString& text, TQListViewItem* browserEquivalent )
+ : TQCheckListItem( tqparent, text, TQCheckListItem::CheckBox )
, m_browserEquivalent( browserEquivalent )
{ }
@@ -207,14 +207,14 @@ void SelectionListItem::stateChange( bool b )
}
}
-QString
+TQString
SelectionListItem::name() const
{
- TQString fullName = text(0).replace('/', "\\/");
- TQListViewItem *p = parent();
+ TQString fullName = text(0).tqreplace('/', "\\/");
+ TQListViewItem *p = tqparent();
while ( p ) {
- fullName.prepend( p->text(0).replace('/', "\\/") + "/" );
- p = p->parent();
+ fullName.prepend( p->text(0).tqreplace('/', "\\/") + "/" );
+ p = p->tqparent();
}
return fullName;
}