summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-08-20 02:41:01 (UTC)
committer llornkcor <llornkcor>2002-08-20 02:41:01 (UTC)
commit08a0272257dbb26af4403f9d8d47e5bf300eb0a7 (patch) (side-by-side diff)
tree0b6e073197fd43f728a99594da45a975c20e0984
parent16b105a34b4e525cf6690e55beacf4baa57e60d7 (diff)
downloadopie-08a0272257dbb26af4403f9d8d47e5bf300eb0a7.zip
opie-08a0272257dbb26af4403f9d8d47e5bf300eb0a7.tar.gz
opie-08a0272257dbb26af4403f9d8d47e5bf300eb0a7.tar.bz2
take out some debug mesasges
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 5c804f5..404e1fe 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -97,13 +97,13 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
audioScan = FALSE;
videoScan = FALSE;
setBackgroundMode( PaletteButton );
// setCaption( tr("OpiePlayer") );
- setIcon( Resource::loadPixmap( "opieplayer2/MPEGPlayer" ) );
+// setIcon( Resource::loadPixmap( "opieplayer2/MPEGPlayer" ) );
setToolBarsMovable( FALSE );
// Create Toolbar
QPEToolBar *toolbar = new QPEToolBar( this );
toolbar->setHorizontalStretchable( TRUE );
@@ -455,13 +455,13 @@ void PlayListWidget::setDocument(const QString& fileref) {
setCaption(tr("OpiePlayer"));
}
}
void PlayListWidget::setActiveWindow() {
- qDebug("SETTING active window");
+// qDebug("SETTING active window");
// When we get raised we need to ensure that it switches views
char origView = mediaPlayerState->view();
mediaPlayerState->setView( 'l' ); // invalidate
mediaPlayerState->setView( origView ); // now switch back
}
@@ -473,38 +473,37 @@ void PlayListWidget::useSelectedDocument() {
const DocLnk *PlayListWidget::current() { // this is fugly
switch (tabWidget->currentPageIndex()) {
case 0: //playlist
{
- qDebug("playlist");
+// qDebug("playlist");
if ( mediaPlayerState->playlist() ) {
return d->selectedFiles->current();
} else if ( d->setDocumentUsed && d->current ) {
return d->current;
} else {
return d->files->selected();
}
}
break;
case 1://audio
{
- qDebug("audioView");
+// qDebug("audioView");
QListIterator<DocLnk> dit( files.children() );
for ( ; dit.current(); ++dit ) {
if( dit.current()->name() == audioView->currentItem()->text(0) && !insanityBool) {
- qDebug("here");
insanityBool=TRUE;
return dit;
}
}
}
break;
case 2: // video
{
- qDebug("videoView");
+// qDebug("videoView");
QListIterator<DocLnk> Vdit( vFiles.children() );
for ( ; Vdit.current(); ++Vdit ) {
if( Vdit.current()->name() == videoView->currentItem()->text(0) && !insanityBool) {
insanityBool=TRUE;
return Vdit;
}
@@ -862,24 +861,24 @@ void PlayListWidget::playlistViewPressed( int mouse, QListViewItem *, const QPoi
break;
};
}
void PlayListWidget::scanForAudio() {
- qDebug("scan for audio");
+// qDebug("scan for audio");
files.detachChildren();
QListIterator<DocLnk> sdit( files.children() );
for ( ; sdit.current(); ++sdit ) {
delete sdit.current();
}
Global::findDocuments(&files, "audio/*");
audioScan = TRUE;
}
void PlayListWidget::scanForVideo() {
- qDebug("scan for video");
+// qDebug("scan for video");
vFiles.detachChildren();
QListIterator<DocLnk> sdit( vFiles.children() );
for ( ; sdit.current(); ++sdit ) {
delete sdit.current();
}
Global::findDocuments(&vFiles, "video/*");
@@ -993,24 +992,22 @@ void PlayListWidget::keyReleaseEvent( QKeyEvent *e)
// doBlank();
break;
case Key_F13: //mail
// doUnblank();
break;
case Key_Q: //add to playlist
- qDebug("Add");
addSelected();
break;
case Key_R: //remove from playlist
removeSelected();
break;
// case Key_P: //play
// qDebug("Play");
// playSelected();
// break;
case Key_Space:
- qDebug("Play");
// playSelected(); puh
break;
case Key_1:
tabWidget->setCurrentPage(0);
break;
case Key_2:
@@ -1194,13 +1191,13 @@ void PlayListWidget::readPls(const QString &filename) {
}
i++;
}
}
void PlayListWidget::pmViewActivated(int index) {
- qDebug("%d", index);
+// qDebug("%d", index);
switch(index) {
case -16:
{
mediaPlayerState->toggleFullscreen();
bool b=mediaPlayerState->fullscreen();