summaryrefslogtreecommitdiff
path: root/noncore/multimedia
authorsimon <simon>2002-12-09 09:50:33 (UTC)
committer simon <simon>2002-12-09 09:50:33 (UTC)
commit94a4c102d20eb63104a66fd8fba141a716ae3623 (patch) (unidiff)
treed54c220fc94d8d7e7b84c7e6ed07bfb13cab5dcc /noncore/multimedia
parent7ccd9b65ab621dbf8bf79c053141af81fb39ca4b (diff)
downloadopie-94a4c102d20eb63104a66fd8fba141a716ae3623.zip
opie-94a4c102d20eb63104a66fd8fba141a716ae3623.tar.gz
opie-94a4c102d20eb63104a66fd8fba141a716ae3623.tar.bz2
switch (mouse) {
- case 1: + case LeftButton: break; - case 2: + case RightButton:
Diffstat (limited to 'noncore/multimedia') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 889667c..27a3286 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -188,67 +188,67 @@ void PlayListWidget::writeDefaultPlaylist() {
188 delete m3uList; 188 delete m3uList;
189 189
190 } 190 }
191 } 191 }
192} 192}
193 193
194void PlayListWidget::addToSelection( const DocLnk& lnk ) { 194void PlayListWidget::addToSelection( const DocLnk& lnk ) {
195 d->setDocumentUsed = FALSE; 195 d->setDocumentUsed = FALSE;
196 if( QFileInfo( lnk.file() ).exists() || 196 if( QFileInfo( lnk.file() ).exists() ||
197 lnk.file().left(4) == "http" ) { 197 lnk.file().left(4) == "http" ) {
198 d->selectedFiles->addToSelection( lnk ); 198 d->selectedFiles->addToSelection( lnk );
199 } 199 }
200// writeCurrentM3u(); 200// writeCurrentM3u();
201} 201}
202 202
203 203
204void PlayListWidget::clearList() { 204void PlayListWidget::clearList() {
205 while ( first() ) { 205 while ( first() ) {
206 d->selectedFiles->removeSelected(); 206 d->selectedFiles->removeSelected();
207 } 207 }
208} 208}
209 209
210void PlayListWidget::viewPressed( int mouse, QListViewItem *, const QPoint& , int) { 210void PlayListWidget::viewPressed( int mouse, QListViewItem *, const QPoint& , int) {
211 switch (mouse) { 211 switch (mouse) {
212 case 1: 212 case LeftButton:
213 break; 213 break;
214 case 2: 214 case RightButton:
215 { 215 {
216 QPopupMenu m; 216 QPopupMenu m;
217 m.insertItem( tr( "Play Selected" ), this, SLOT( playSelected() )); 217 m.insertItem( tr( "Play Selected" ), this, SLOT( playSelected() ));
218 m.insertItem( tr( "Add to Playlist" ), this, SLOT( addSelected() )); 218 m.insertItem( tr( "Add to Playlist" ), this, SLOT( addSelected() ));
219 m.exec( QCursor::pos() ); 219 m.exec( QCursor::pos() );
220 } 220 }
221 break; 221 break;
222 } 222 }
223} 223}
224 224
225 225
226void PlayListWidget::playlistViewPressed( int mouse, QListViewItem *, const QPoint& , int ) { 226void PlayListWidget::playlistViewPressed( int mouse, QListViewItem *, const QPoint& , int ) {
227 switch (mouse) { 227 switch (mouse) {
228 case 1: 228 case LeftButton:
229 break; 229 break;
230 case 2: 230 case RightButton:
231 { 231 {
232 QPopupMenu m; 232 QPopupMenu m;
233 m.insertItem( tr( "Play" ), this, SLOT( playSelected() )); 233 m.insertItem( tr( "Play" ), this, SLOT( playSelected() ));
234 m.insertItem( tr( "Remove" ), this, SLOT( removeSelected() )); 234 m.insertItem( tr( "Remove" ), this, SLOT( removeSelected() ));
235 m.exec( QCursor::pos() ); 235 m.exec( QCursor::pos() );
236 } 236 }
237 break; 237 break;
238 } 238 }
239} 239}
240 240
241 241
242void PlayListWidget::addAllToList() { 242void PlayListWidget::addAllToList() {
243 243
244// QTime t; 244// QTime t;
245// t.start(); 245// t.start();
246 246
247 audioView->populateView(); 247 audioView->populateView();
248 248
249 QListViewItemIterator audioIt( audioView ); 249 QListViewItemIterator audioIt( audioView );
250 DocLnk lnk; 250 DocLnk lnk;
251 QString filename; 251 QString filename;
252 // iterate through all items of the listview 252 // iterate through all items of the listview
253 for ( ; audioIt.current(); ++audioIt ) { 253 for ( ; audioIt.current(); ++audioIt ) {
254 filename = audioIt.current()->text(3); 254 filename = audioIt.current()->text(3);