-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 12 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.h | 3 |
2 files changed, 15 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 | |||
@@ -54,2 +54,3 @@ | |||
54 | #include <stdlib.h> | 54 | #include <stdlib.h> |
55 | #include <assert.h> | ||
55 | 56 | ||
@@ -1147,2 +1148,13 @@ int PlayListWidget::whichList() { | |||
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() { |
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h index b2c389e..05d53a4 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.h +++ b/noncore/multimedia/opieplayer2/playlistwidget.h | |||
@@ -57,2 +57,4 @@ class PlayListWidget : public PlayListWidgetGui { | |||
57 | public: | 57 | public: |
58 | enum TabType { CurrentPlayList, AudioFiles, VideoFiles, PlayLists, NumTabTypes = 4 }; | ||
59 | |||
58 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); | 60 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); |
@@ -69,2 +71,3 @@ public: | |||
69 | int whichList(); | 71 | int whichList(); |
72 | TabType currentTab() const; | ||
70 | 73 | ||