@ -169,10 +169,10 @@ struct CoverPopup : public TQWidget
CoverPopup ( const TQPixmap & image , const TQPoint & p ) :
CoverPopup ( const TQPixmap & image , const TQPoint & p ) :
TQWidget ( 0 , 0 , WDestructiveClose | WX11BypassWM )
TQWidget ( 0 , 0 , WDestructiveClose | WX11BypassWM )
{
{
TQHBoxLayout * tq layout = new TQHBoxLayout ( this ) ;
TQHBoxLayout * layout = new TQHBoxLayout ( this ) ;
TQLabel * label = new TQLabel ( this ) ;
TQLabel * label = new TQLabel ( this ) ;
tq layout- > addWidget ( label ) ;
layout- > addWidget ( label ) ;
label - > setFrameStyle ( TQFrame : : Box | TQFrame : : Raised ) ;
label - > setFrameStyle ( TQFrame : : Box | TQFrame : : Raised ) ;
label - > setLineWidth ( 1 ) ;
label - > setLineWidth ( 1 ) ;
label - > setPixmap ( image ) ;
label - > setPixmap ( image ) ;
@ -342,7 +342,7 @@ PlayList::PlayList( TQWidget* parent, TQObject *objParent, const char *name ) :
KIO : : NetAccess : : mkdir ( m_playlistDirectory , mainWidget ) ;
KIO : : NetAccess : : mkdir ( m_playlistDirectory , mainWidget ) ;
kdDebug ( ) < < " PLAYLIST " < < endl ;
kdDebug ( ) < < " PLAYLIST " < < endl ;
TQGridLayout * tq layout = new TQGridLayout ( playlist , 4 , 2 , 3 ) ;
TQGridLayout * layout = new TQGridLayout ( playlist , 4 , 2 , 3 ) ;
m_list = new UrlListView ( playlist ) ;
m_list = new UrlListView ( playlist ) ;
mainWidget - > setAcceptDrops ( true ) ;
mainWidget - > setAcceptDrops ( true ) ;
@ -379,12 +379,12 @@ PlayList::PlayList( TQWidget* parent, TQObject *objParent, const char *name ) :
m_list - > setRenameable ( TRACK_COLUMN ) ;
m_list - > setRenameable ( TRACK_COLUMN ) ;
m_list - > setAllColumnsShowFocus ( true ) ;
m_list - > setAllColumnsShowFocus ( true ) ;
m_list - > setShowSortIndicator ( true ) ;
m_list - > setShowSortIndicator ( true ) ;
tq layout- > addMultiCellWidget ( m_list , 3 , 3 , 0 , 1 ) ;
layout- > addMultiCellWidget ( m_list , 3 , 3 , 0 , 1 ) ;
coverFrame = new CoverFrame ( playlist ) ;
coverFrame = new CoverFrame ( playlist ) ;
coverFrame - > setFixedWidth ( 80 ) ;
coverFrame - > setFixedWidth ( 80 ) ;
coverFrame - > setFixedHeight ( 80 ) ;
coverFrame - > setFixedHeight ( 80 ) ;
tq layout- > addMultiCellWidget ( coverFrame , 0 , 2 , 0 , 0 ) ;
layout- > addMultiCellWidget ( coverFrame , 0 , 2 , 0 , 0 ) ;
TQHBoxLayout * h1 = new TQHBoxLayout ( ) ;
TQHBoxLayout * h1 = new TQHBoxLayout ( ) ;
searchBtn = new TQToolButton ( playlist ) ;
searchBtn = new TQToolButton ( playlist ) ;
@ -397,7 +397,7 @@ PlayList::PlayList( TQWidget* parent, TQObject *objParent, const char *name ) :
m_playlistFilter = new KLineEdit ( playlist ) ;
m_playlistFilter = new KLineEdit ( playlist ) ;
m_playlistFilter - > setFocusPolicy ( TQ_ClickFocus ) ;
m_playlistFilter - > setFocusPolicy ( TQ_ClickFocus ) ;
h1 - > addWidget ( m_playlistFilter ) ;
h1 - > addWidget ( m_playlistFilter ) ;
tq layout- > addLayout ( h1 , 2 , 1 ) ;
layout- > addLayout ( h1 , 2 , 1 ) ;
TQHBoxLayout * h2 = new TQHBoxLayout ( ) ;
TQHBoxLayout * h2 = new TQHBoxLayout ( ) ;
TQLabel * playlistLabel = new TQLabel ( i18n ( " Playlist: " ) , playlist ) ;
TQLabel * playlistLabel = new TQLabel ( i18n ( " Playlist: " ) , playlist ) ;
@ -410,10 +410,10 @@ PlayList::PlayList( TQWidget* parent, TQObject *objParent, const char *name ) :
m_playlistSelector - > setFocusPolicy ( TQ_ClickFocus ) ;
m_playlistSelector - > setFocusPolicy ( TQ_ClickFocus ) ;
TQToolTip : : add ( m_playlistSelector , i18n ( " Select the active playlist. To change playlist name edit it and confirm with 'Return'. " ) ) ;
TQToolTip : : add ( m_playlistSelector , i18n ( " Select the active playlist. To change playlist name edit it and confirm with 'Return'. " ) ) ;
h2 - > addWidget ( m_playlistSelector ) ;
h2 - > addWidget ( m_playlistSelector ) ;
tq layout- > addLayout ( h2 , 1 , 1 ) ;
layout- > addLayout ( h2 , 1 , 1 ) ;
roller = new RollTitle ( playlist ) ;
roller = new RollTitle ( playlist ) ;
tq layout- > addWidget ( roller , 0 , 1 ) ;
layout- > addWidget ( roller , 0 , 1 ) ;
KAccel * accel = new KAccel ( mainWidget ) ;
KAccel * accel = new KAccel ( mainWidget ) ;
accel - > insert ( " Delete selected " , TQt : : Key_Delete , this , TQT_SLOT ( slotRemoveSelected ( ) ) ) ;
accel - > insert ( " Delete selected " , TQt : : Key_Delete , this , TQT_SLOT ( slotRemoveSelected ( ) ) ) ;
@ -2145,7 +2145,7 @@ void PlayList::slotPaste()
TQStrList list ;
TQStrList list ;
if ( TQUriDrag : : decode ( TQApplication : : tq clipboard( ) - > data ( ) , list ) )
if ( TQUriDrag : : decode ( TQApplication : : clipboard( ) - > data ( ) , list ) )
{
{
TQStringList urls ;
TQStringList urls ;
for ( TQStrListIterator it ( list ) ; * it ; + + it )
for ( TQStrListIterator it ( list ) ; * it ; + + it )
@ -2155,7 +2155,7 @@ void PlayList::slotPaste()
}
}
/** try to decode as text **/
/** try to decode as text **/
TQString text ;
TQString text ;
if ( TQTextDrag : : decode ( TQApplication : : tq clipboard( ) - > data ( ) , text ) )
if ( TQTextDrag : : decode ( TQApplication : : clipboard( ) - > data ( ) , text ) )
{
{
add ( text , lastSelected ) ;
add ( text , lastSelected ) ;
}
}
@ -2173,7 +2173,7 @@ void PlayList::slotCopy()
urlList . append ( TQUriDrag : : unicodeUriToUri ( dynamic_cast < PlaylistItem * > ( selected . at ( i ) ) - > url ( ) ) ) ;
urlList . append ( TQUriDrag : : unicodeUriToUri ( dynamic_cast < PlaylistItem * > ( selected . at ( i ) ) - > url ( ) ) ) ;
}
}
TQApplication : : tq clipboard( ) - > setData ( new TQUriDrag ( urlList ) ) ;
TQApplication : : clipboard( ) - > setData ( new TQUriDrag ( urlList ) ) ;
}
}
void PlayList : : slotSelectAll ( )
void PlayList : : slotSelectAll ( )