Changeset View
Changeset View
Standalone View
Standalone View
src/manageaudioplayer.cpp
Show First 20 Lines • Show All 407 Lines • ▼ Show 20 Line(s) | 407 | if (mPlayerPosition == playerPosition) { | |||
---|---|---|---|---|---|
408 | return; | 408 | return; | ||
409 | } | 409 | } | ||
410 | 410 | | |||
411 | mPlayerPosition = playerPosition; | 411 | mPlayerPosition = playerPosition; | ||
412 | Q_EMIT playerPositionChanged(); | 412 | Q_EMIT playerPositionChanged(); | ||
413 | QTimer::singleShot(0, [this]() {Q_EMIT playControlPositionChanged();}); | 413 | QTimer::singleShot(0, [this]() {Q_EMIT playControlPositionChanged();}); | ||
414 | } | 414 | } | ||
415 | 415 | | |||
416 | void ManageAudioPlayer::setCurrentPlayingForRadios(const QString title, const QString nowPlaying){ | ||||
417 | if(mPlayListModel && mCurrentTrack.isValid()){ | ||||
astippich: code style
if (...) { | |||||
418 | Q_EMIT currentPlayingForRadiosChanged(title, MediaPlayList::TitleRole); | ||||
419 | Q_EMIT currentPlayingForRadiosChanged(nowPlaying, MediaPlayList::ArtistRole); | ||||
420 | } | ||||
421 | } | ||||
422 | | ||||
416 | void ManageAudioPlayer::setPlayControlPosition(int playerPosition) | 423 | void ManageAudioPlayer::setPlayControlPosition(int playerPosition) | ||
417 | { | 424 | { | ||
418 | Q_EMIT seek(playerPosition); | 425 | Q_EMIT seek(playerPosition); | ||
419 | } | 426 | } | ||
420 | 427 | | |||
421 | void ManageAudioPlayer::setPersistentState(const QVariantMap &persistentStateValue) | 428 | void ManageAudioPlayer::setPersistentState(const QVariantMap &persistentStateValue) | ||
422 | { | 429 | { | ||
423 | if (mPersistentState == persistentStateValue) { | 430 | if (mPersistentState == persistentStateValue) { | ||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |
code style
if (...) {