author | llornkcor <llornkcor> | 2003-06-11 22:11:38 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-06-11 22:11:38 (UTC) |
commit | 24097a2790fd7bb241a0a8da24ef2996e4f4ad15 (patch) (unidiff) | |
tree | 142e0fb758067bc9a601b3bd2dabdff27675c0f3 /core/multimedia/opieplayer/playlistselection.cpp | |
parent | 188319af82322c84f02e1abb848d908ca8f9e26c (diff) | |
download | opie-24097a2790fd7bb241a0a8da24ef2996e4f4ad15.zip opie-24097a2790fd7bb241a0a8da24ef2996e4f4ad15.tar.gz opie-24097a2790fd7bb241a0a8da24ef2996e4f4ad15.tar.bz2 |
fix setDoc for playlists and others. remove qDebugs
Diffstat (limited to 'core/multimedia/opieplayer/playlistselection.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/playlistselection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/playlistselection.cpp b/core/multimedia/opieplayer/playlistselection.cpp index 67187f8..94567f2 100644 --- a/core/multimedia/opieplayer/playlistselection.cpp +++ b/core/multimedia/opieplayer/playlistselection.cpp | |||
@@ -185,25 +185,25 @@ bool PlayListSelection::last() { | |||
185 | 185 | ||
186 | void PlayListSelection::unSelect() | 186 | void PlayListSelection::unSelect() |
187 | { | 187 | { |
188 | QListViewItem *item = selectedItem(); | 188 | QListViewItem *item = selectedItem(); |
189 | setSelected( currentItem(), FALSE); | 189 | setSelected( currentItem(), FALSE); |
190 | } | 190 | } |
191 | 191 | ||
192 | void PlayListSelection::writeCurrent( Config& cfg ) { | 192 | void PlayListSelection::writeCurrent( Config& cfg ) { |
193 | cfg.setGroup("PlayList"); | 193 | cfg.setGroup("PlayList"); |
194 | QListViewItem *item = selectedItem(); | 194 | QListViewItem *item = selectedItem(); |
195 | if ( item ) | 195 | if ( item ) |
196 | cfg.writeEntry("current", item->text(0) ); | 196 | cfg.writeEntry("current", item->text(0) ); |
197 | qDebug(item->text(0)); | 197 | // qDebug(item->text(0)); |
198 | 198 | ||
199 | } | 199 | } |
200 | 200 | ||
201 | void PlayListSelection::setSelectedItem(const QString &strk ) { | 201 | void PlayListSelection::setSelectedItem(const QString &strk ) { |
202 | 202 | ||
203 | unSelect(); | 203 | unSelect(); |
204 | QListViewItemIterator it( this ); | 204 | QListViewItemIterator it( this ); |
205 | for ( ; it.current(); ++it ) { | 205 | for ( ; it.current(); ++it ) { |
206 | // qDebug( it.current()->text(0)); | 206 | // qDebug( it.current()->text(0)); |
207 | if( strk == it.current()->text(0)) { | 207 | if( strk == it.current()->text(0)) { |
208 | // qDebug( "We have a match "+strk); | 208 | // qDebug( "We have a match "+strk); |
209 | setSelected( it.current(), TRUE); | 209 | setSelected( it.current(), TRUE); |