From 46d64cdfe9a3d949e91ea6a72828405d03337225 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 02 Dec 2002 14:38:47 +0000 Subject: - two const fixlets --- (limited to 'noncore/multimedia/opieplayer2') 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 @@ -1142,7 +1142,7 @@ void PlayListWidget::skinsMenuActivated( int item ) { tr( "You must restart Opieplayer
to see your changes." ) ); } -int PlayListWidget::whichList() { +int PlayListWidget::whichList() const { return tabWidget->currentPageIndex(); } @@ -1157,7 +1157,7 @@ PlayListWidget::TabType PlayListWidget::currentTab() const return indexToTabType[ index ]; } -QString PlayListWidget::currentFileListPathName() { +QString PlayListWidget::currentFileListPathName() const { switch (whichList()) { case 1: return audioView->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 @@ -68,7 +68,7 @@ public: const DocLnk *current(); void useSelectedDocument(); int selected; - int whichList(); + int whichList() const; TabType currentTab() const; public slots: @@ -77,7 +77,7 @@ public slots: bool next(); bool prev(); void writeDefaultPlaylist( ); - QString currentFileListPathName(); + QString currentFileListPathName() const; protected: void keyReleaseEvent( QKeyEvent *e); -- cgit v0.9.0.2