Implement UI for track skipping.
This commit is contained in:
@@ -74,13 +74,14 @@ void WebInterface::songChangedFromServer(AudioTrack nextTrack)
|
||||
|
||||
void WebInterface::skipVotedFromServer(User userRequestingToSkipCurrentTrack)
|
||||
{
|
||||
//priv_int->playerUI->tempText->setText(priv_int->playerUI->tempText->text()+"skip");
|
||||
priv_int->playerUI->updateSkipRequestedFromServer();
|
||||
//TODO: show notification
|
||||
triggerUpdate();
|
||||
}
|
||||
|
||||
void WebInterface::skipVoteUpdateFromServer(User userVoting, bool forSkip)
|
||||
{
|
||||
//priv_int->playerUI->tempText->setText(priv_int->playerUI->tempText->text()+"vote");
|
||||
if(!forSkip) priv_int->playerUI->updateSkipDeniedFromServer();
|
||||
triggerUpdate();
|
||||
}
|
||||
|
||||
@@ -92,7 +93,7 @@ void WebInterface::voteNextSongFromServer(User userVoting, AudioTrack trackVoted
|
||||
|
||||
void WebInterface::voteNextPollClosedFromServer()
|
||||
{
|
||||
//priv_int->playerUI->tempText->setText(priv_int->playerUI->tempText->text()+"voteclosed");
|
||||
priv_int->playerUI->updateVotingEnded();
|
||||
triggerUpdate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user