Skip to content

Commit

Permalink
Modified for 2024 exemption
Browse files Browse the repository at this point in the history
  • Loading branch information
Mairon1206 committed Aug 3, 2024
1 parent 3dd682e commit c58ff7c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
## Clone

```bash
git clone --recursive https://github.com/NJUPT-SAST/sast-evento.git
git clone --recursive https://github.com/NJUPT-SAST-Cpp/sast-music.git
```

注意:本项目使用了子模块,所以请确保使用 `--recursive` 参数来克隆仓库,或者在克隆后执行以下命令:
Expand Down
2 changes: 1 addition & 1 deletion src/ViewModel/LikedSongViewModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void LikedSongViewModel::loadAllLikedSongs() {
}

void LikedSongViewModel::playSongByIndex(int index) {
auto song = model[index];
auto song = allLikedSongs[index];
NextUpViewModel::getInstance()->appendModel(song);
}

Expand Down
2 changes: 1 addition & 1 deletion src/ViewModel/NextUpViewModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class NextUpViewModel : public QAbstractListModel {
private:
explicit NextUpViewModel(QObject* parent = nullptr);

QList<Song> model;
QList<Song> model; // model for "Play Queue"
Song playingSong;
QHash<NeteaseCloudMusic::SongId, QUrl> songUrls;
PlayMode playMode = PlayMode::ListRepeat;
Expand Down
2 changes: 1 addition & 1 deletion src/ViewModel/PlayingSongViewModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void PlayingSongViewModel::onMusicPositionChanged(qint64 position) {
emit timeStampChanged();
}

void PlayingSongViewModel::onPlayStateChanged(QMediaPlayer::PlaybackState status) {
void PlayingSongViewModel::onPlaybackStateChanged(QMediaPlayer::PlaybackState status) {
if (status == QMediaPlayer::PlayingState) {
setPlaying(true);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/ViewModel/PlayingSongViewModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class PlayingSongViewModel : public QObject {
private slots:
void onMediaStatusChanged(QMediaPlayer::MediaStatus status);
void onMusicPositionChanged(qint64 position);
void onPlayStateChanged(QMediaPlayer::PlaybackState status);
void onPlaybackStateChanged(QMediaPlayer::PlaybackState status);
void playSong();
void setPlayingSong(const Song& song);

Expand Down

0 comments on commit c58ff7c

Please sign in to comment.