Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index d1506db..9918eeb 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp | |||
@@ -52,6 +52,7 @@ | |||
52 | 52 | ||
53 | //only needed for the random play | 53 | //only needed for the random play |
54 | #include <stdlib.h> | 54 | #include <stdlib.h> |
55 | #include <assert.h> | ||
55 | 56 | ||
56 | #include "audiowidget.h" | 57 | #include "audiowidget.h" |
57 | #include "videowidget.h" | 58 | #include "videowidget.h" |
@@ -1145,6 +1146,17 @@ int PlayListWidget::whichList() { | |||
1145 | return tabWidget->currentPageIndex(); | 1146 | return tabWidget->currentPageIndex(); |
1146 | } | 1147 | } |
1147 | 1148 | ||
1149 | PlayListWidget::TabType PlayListWidget::currentTab() const | ||
1150 | { | ||
1151 | static const TabType indexToTabType[ NumTabTypes ] = | ||
1152 | { CurrentPlaylist, AudioFiles, VideoFiles, PlayLists }; | ||
1153 | |||
1154 | int index = tabWidget->currentPageIndex(); | ||
1155 | assert( index < NumTabTypes && index >= 0 ); | ||
1156 | |||
1157 | return indexToTabType[ index ]; | ||
1158 | } | ||
1159 | |||
1148 | QString PlayListWidget::currentFileListPathName() { | 1160 | QString PlayListWidget::currentFileListPathName() { |
1149 | switch (whichList()) { | 1161 | switch (whichList()) { |
1150 | case 1: | 1162 | case 1: |