summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-02 14:38:47 (UTC)
committer simon <simon>2002-12-02 14:38:47 (UTC)
commit46d64cdfe9a3d949e91ea6a72828405d03337225 (patch) (side-by-side diff)
tree992e6fd74384ed4b7126b73b3313d599b5035949
parent77d55b631fa3cf26bfdf809c17ee3252d3c80ac0 (diff)
downloadopie-46d64cdfe9a3d949e91ea6a72828405d03337225.zip
opie-46d64cdfe9a3d949e91ea6a72828405d03337225.tar.gz
opie-46d64cdfe9a3d949e91ea6a72828405d03337225.tar.bz2
- two const fixlets
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp4
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.h4
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
@@ -1133,38 +1133,38 @@ void PlayListWidget::skinsMenuActivated( int item ) {
for(unsigned int i = defaultSkinIndex; i > defaultSkinIndex - skinsMenu->count(); i-- ) {
skinsMenu->setItemChecked( i, FALSE );
}
skinsMenu->setItemChecked( item, TRUE );
Config cfg( "OpiePlayer" );
cfg.setGroup("Options");
cfg.writeEntry("Skin", skinsMenu->text( item ) );
QMessageBox::warning( this, tr( "OpiePlayer" ),
tr( "You must <b>restart</b> Opieplayer<br>to see your changes." ) );
}
-int PlayListWidget::whichList() {
+int PlayListWidget::whichList() const {
return tabWidget->currentPageIndex();
}
PlayListWidget::TabType PlayListWidget::currentTab() const
{
static const TabType indexToTabType[ NumTabTypes ] =
{ CurrentPlayList, AudioFiles, VideoFiles, PlayLists };
int index = tabWidget->currentPageIndex();
assert( index < NumTabTypes && index >= 0 );
return indexToTabType[ index ];
}
-QString PlayListWidget::currentFileListPathName() {
+QString PlayListWidget::currentFileListPathName() const {
switch (whichList()) {
case 1:
return audioView->currentItem()->text(3);
break;
case 2:
return videoView->currentItem()->text(3);
break;
};
return "";
}
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
@@ -59,34 +59,34 @@ public:
PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 );
~PlayListWidget();
DocLnkSet files;
DocLnkSet vFiles;
bool fromSetDocument;
bool insanityBool;
QString setDocFileRef, currentPlayList;
// retrieve the current playlist entry (media file link)
const DocLnk *current();
void useSelectedDocument();
int selected;
- int whichList();
+ int whichList() const;
TabType currentTab() const;
public slots:
bool first();
bool last();
bool next();
bool prev();
void writeDefaultPlaylist( );
- QString currentFileListPathName();
+ QString currentFileListPathName() const;
protected:
void keyReleaseEvent( QKeyEvent *e);
private:
int defaultSkinIndex;
bool audioScan, videoScan, audioPopulated, videoPopulated;
void readm3u(const QString &);
void readPls(const QString &);
void initializeStates();
void populateAudioView();
void populateVideoView();