author | simon <simon> | 2002-12-02 17:22:29 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-02 17:22:29 (UTC) |
commit | 28f9d0587b2ee6a6a9467f658567a45ab7e95b94 (patch) (unidiff) | |
tree | 509fcf475ca55dde3d64f6719a2a751c8c4a88dc | |
parent | a79674bdbba0093f4bba78f47905b67fd2f32a8f (diff) | |
download | opie-28f9d0587b2ee6a6a9467f658567a45ab7e95b94.zip opie-28f9d0587b2ee6a6a9467f658567a45ab7e95b94.tar.gz opie-28f9d0587b2ee6a6a9467f658567a45ab7e95b94.tar.bz2 |
- removed the playlistToggled signal, as it is never emitted
- resulted in some simplification in playlistwidget
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.h | 1 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 14 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.h | 1 |
3 files changed, 1 insertions, 15 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.h b/noncore/multimedia/opieplayer2/mediaplayerstate.h index d15894f..7a80ad8 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.h +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.h | |||
@@ -103,5 +103,4 @@ signals: | |||
103 | void loopingToggled( bool ); | 103 | void loopingToggled( bool ); |
104 | void shuffledToggled( bool ); | 104 | void shuffledToggled( bool ); |
105 | void playlistToggled( bool ); | ||
106 | void pausedToggled( bool ); | 105 | void pausedToggled( bool ); |
107 | void playingToggled( bool ); | 106 | void playingToggled( bool ); |
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 6355bec..5b277cc 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp | |||
@@ -148,6 +148,4 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) | |||
148 | connect( mediaPlayerState, SIGNAL( shuffledToggled( bool ) ), | 148 | connect( mediaPlayerState, SIGNAL( shuffledToggled( bool ) ), |
149 | d->tbShuffle, SLOT( setOn( bool ) ) ); | 149 | d->tbShuffle, SLOT( setOn( bool ) ) ); |
150 | connect( mediaPlayerState, SIGNAL( playlistToggled( bool ) ), | ||
151 | this, SLOT( setPlaylist( bool ) ) ); | ||
152 | connect( d->selectedFiles, SIGNAL( doubleClicked( QListViewItem *) ), | 150 | connect( d->selectedFiles, SIGNAL( doubleClicked( QListViewItem *) ), |
153 | this, SLOT( playIt( QListViewItem *) ) ); | 151 | this, SLOT( playIt( QListViewItem *) ) ); |
@@ -178,5 +176,5 @@ void PlayListWidget::initializeStates() { | |||
178 | d->tbLoop->setOn( mediaPlayerState->isLooping() ); | 176 | d->tbLoop->setOn( mediaPlayerState->isLooping() ); |
179 | d->tbShuffle->setOn( mediaPlayerState->isShuffled() ); | 177 | d->tbShuffle->setOn( mediaPlayerState->isShuffled() ); |
180 | setPlaylist( true ); | 178 | d->playListFrame->show(); |
181 | } | 179 | } |
182 | 180 | ||
@@ -518,14 +516,4 @@ void PlayListWidget::loadList( const DocLnk & lnk) { | |||
518 | } | 516 | } |
519 | 517 | ||
520 | |||
521 | void PlayListWidget::setPlaylist( bool shown ) { | ||
522 | if ( shown ) { | ||
523 | d->playListFrame->show(); | ||
524 | } else { | ||
525 | d->playListFrame->hide(); | ||
526 | } | ||
527 | } | ||
528 | |||
529 | |||
530 | void PlayListWidget::addSelected() { | 518 | void PlayListWidget::addSelected() { |
531 | assert( inFileListMode() ); | 519 | assert( inFileListMode() ); |
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h index 511a192..fa2837a 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.h +++ b/noncore/multimedia/opieplayer2/playlistwidget.h | |||
@@ -120,5 +120,4 @@ private slots: | |||
120 | void addToSelection( const DocLnk& ); // Add a media file to the playlist | 120 | void addToSelection( const DocLnk& ); // Add a media file to the playlist |
121 | void addToSelection( QListViewItem* ); // Add a media file to the playlist | 121 | void addToSelection( QListViewItem* ); // Add a media file to the playlist |
122 | void setPlaylist( bool ); // Show/Hide the playlist | ||
123 | void clearList(); | 122 | void clearList(); |
124 | void addAllToList(); | 123 | void addAllToList(); |