Diffstat (limited to 'core/multimedia/opieplayer/playlistselection.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/playlistselection.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/multimedia/opieplayer/playlistselection.cpp b/core/multimedia/opieplayer/playlistselection.cpp index 85228a9..67187f8 100644 --- a/core/multimedia/opieplayer/playlistselection.cpp +++ b/core/multimedia/opieplayer/playlistselection.cpp | |||
@@ -60,13 +60,14 @@ PlayListSelection::PlayListSelection( QWidget *parent, const char *name ) | |||
60 | // setBackgroundPixmap( Resource::loadPixmap( "launcher/opielogo" ) ); | 60 | // setBackgroundPixmap( Resource::loadPixmap( "launcher/opielogo" ) ); |
61 | // #endif | 61 | // #endif |
62 | // addColumn("Title",236); | 62 | // addColumn("Title",236); |
63 | // setAllColumnsShowFocus( TRUE ); | 63 | // setAllColumnsShowFocus( TRUE ); |
64 | addColumn( tr( "Playlist Selection" ) ); | 64 | addColumn( tr( "Playlist Selection" ) ); |
65 | header()->hide(); | 65 | header()->hide(); |
66 | setSorting( -1, FALSE ); | 66 | // setSorting( -1, FALSE ); |
67 | // FIXME | ||
67 | } | 68 | } |
68 | 69 | ||
69 | 70 | ||
70 | PlayListSelection::~PlayListSelection() { | 71 | PlayListSelection::~PlayListSelection() { |
71 | } | 72 | } |
72 | 73 | ||
@@ -101,17 +102,17 @@ const DocLnk *PlayListSelection::current() { | |||
101 | return NULL; | 102 | return NULL; |
102 | } | 103 | } |
103 | 104 | ||
104 | 105 | ||
105 | void PlayListSelection::addToSelection( const DocLnk &lnk ) { | 106 | void PlayListSelection::addToSelection( const DocLnk &lnk ) { |
106 | PlayListSelectionItem *item = new PlayListSelectionItem( this, new DocLnk( lnk ) ); | 107 | PlayListSelectionItem *item = new PlayListSelectionItem( this, new DocLnk( lnk ) ); |
107 | QListViewItem *current = selectedItem(); | 108 | QListViewItem *current = selectedItem(); |
108 | if ( current ) | 109 | if ( current ) |
109 | item->moveItem( current ); | 110 | item->moveItem( current ); |
110 | setSelected( item, TRUE ); | 111 | setSelected( item, TRUE ); |
111 | ensureItemVisible( selectedItem() ); | 112 | ensureItemVisible( item); |
112 | } | 113 | } |
113 | 114 | ||
114 | 115 | ||
115 | void PlayListSelection::removeSelected() { | 116 | void PlayListSelection::removeSelected() { |
116 | QListViewItem *item = selectedItem(); | 117 | QListViewItem *item = selectedItem(); |
117 | if ( item ) | 118 | if ( item ) |