-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 4 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index ce9faac..11a7b5c 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp | |||
@@ -1139,13 +1139,13 @@ void PlayListWidget::skinsMenuActivated( int item ) { | |||
1139 | cfg.setGroup("Options"); | 1139 | cfg.setGroup("Options"); |
1140 | cfg.writeEntry("Skin", skinsMenu->text( item ) ); | 1140 | cfg.writeEntry("Skin", skinsMenu->text( item ) ); |
1141 | QMessageBox::warning( this, tr( "OpiePlayer" ), | 1141 | QMessageBox::warning( this, tr( "OpiePlayer" ), |
1142 | tr( "You must <b>restart</b> Opieplayer<br>to see your changes." ) ); | 1142 | tr( "You must <b>restart</b> Opieplayer<br>to see your changes." ) ); |
1143 | } | 1143 | } |
1144 | 1144 | ||
1145 | int PlayListWidget::whichList() { | 1145 | int PlayListWidget::whichList() const { |
1146 | return tabWidget->currentPageIndex(); | 1146 | return tabWidget->currentPageIndex(); |
1147 | } | 1147 | } |
1148 | 1148 | ||
1149 | PlayListWidget::TabType PlayListWidget::currentTab() const | 1149 | PlayListWidget::TabType PlayListWidget::currentTab() const |
1150 | { | 1150 | { |
1151 | static const TabType indexToTabType[ NumTabTypes ] = | 1151 | static const TabType indexToTabType[ NumTabTypes ] = |
@@ -1154,13 +1154,13 @@ PlayListWidget::TabType PlayListWidget::currentTab() const | |||
1154 | int index = tabWidget->currentPageIndex(); | 1154 | int index = tabWidget->currentPageIndex(); |
1155 | assert( index < NumTabTypes && index >= 0 ); | 1155 | assert( index < NumTabTypes && index >= 0 ); |
1156 | 1156 | ||
1157 | return indexToTabType[ index ]; | 1157 | return indexToTabType[ index ]; |
1158 | } | 1158 | } |
1159 | 1159 | ||
1160 | QString PlayListWidget::currentFileListPathName() { | 1160 | QString PlayListWidget::currentFileListPathName() const { |
1161 | switch (whichList()) { | 1161 | switch (whichList()) { |
1162 | case 1: | 1162 | case 1: |
1163 | return audioView->currentItem()->text(3); | 1163 | return audioView->currentItem()->text(3); |
1164 | break; | 1164 | break; |
1165 | case 2: | 1165 | case 2: |
1166 | return videoView->currentItem()->text(3); | 1166 | return videoView->currentItem()->text(3); |
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h index 05d53a4..7044abe 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.h +++ b/noncore/multimedia/opieplayer2/playlistwidget.h | |||
@@ -65,22 +65,22 @@ public: | |||
65 | bool insanityBool; | 65 | bool insanityBool; |
66 | QString setDocFileRef, currentPlayList; | 66 | QString setDocFileRef, currentPlayList; |
67 | // retrieve the current playlist entry (media file link) | 67 | // retrieve the current playlist entry (media file link) |
68 | const DocLnk *current(); | 68 | const DocLnk *current(); |
69 | void useSelectedDocument(); | 69 | void useSelectedDocument(); |
70 | int selected; | 70 | int selected; |
71 | int whichList(); | 71 | int whichList() const; |
72 | TabType currentTab() const; | 72 | TabType currentTab() const; |
73 | 73 | ||
74 | public slots: | 74 | public slots: |
75 | bool first(); | 75 | bool first(); |
76 | bool last(); | 76 | bool last(); |
77 | bool next(); | 77 | bool next(); |
78 | bool prev(); | 78 | bool prev(); |
79 | void writeDefaultPlaylist( ); | 79 | void writeDefaultPlaylist( ); |
80 | QString currentFileListPathName(); | 80 | QString currentFileListPathName() const; |
81 | protected: | 81 | protected: |
82 | void keyReleaseEvent( QKeyEvent *e); | 82 | void keyReleaseEvent( QKeyEvent *e); |
83 | 83 | ||
84 | private: | 84 | private: |
85 | int defaultSkinIndex; | 85 | int defaultSkinIndex; |
86 | bool audioScan, videoScan, audioPopulated, videoPopulated; | 86 | bool audioScan, videoScan, audioPopulated, videoPopulated; |