connected stop, previous and next button;
STILL MISSING: check whether there is a next/previous medium and only then show/enable buttons
This commit is contained in:
parent
d6c806d41d
commit
61b8734b62
4 changed files with 33 additions and 4 deletions
|
|
@ -49,6 +49,24 @@ void MusicModel::playPause()
|
|||
emit pause();
|
||||
}
|
||||
|
||||
void MusicModel::stopMusic()
|
||||
{
|
||||
if(mIsPlaying){
|
||||
mIsPlaying = false;
|
||||
emit stop();
|
||||
}
|
||||
}
|
||||
|
||||
void MusicModel::playNext()
|
||||
{
|
||||
emit next();
|
||||
}
|
||||
|
||||
void MusicModel::playPrevious()
|
||||
{
|
||||
emit previous();
|
||||
}
|
||||
|
||||
NavigationItemModel *MusicModel::getCurrentItem()
|
||||
{
|
||||
return mCurrentItem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue