Changeset View
Changeset View
Standalone View
Standalone View
src/EngineController.cpp
Show First 20 Lines • Show All 655 Lines • ▼ Show 20 Line(s) | |||||
656 | 656 | | |||
657 | int | 657 | int | ||
658 | EngineController::decreaseVolume( int ticks ) //SLOT | 658 | EngineController::decreaseVolume( int ticks ) //SLOT | ||
659 | { | 659 | { | ||
660 | return setVolume( volume() - ticks ); | 660 | return setVolume( volume() - ticks ); | ||
661 | } | 661 | } | ||
662 | 662 | | |||
663 | int | 663 | int | ||
664 | EngineController::regularIncreaseVolume() //SLOT | ||||
665 | { | ||||
666 | return increaseVolume(); | ||||
667 | } | ||||
668 | | ||||
669 | int | ||||
670 | EngineController::regularDecreaseVolume() //SLOT | ||||
671 | { | ||||
672 | return decreaseVolume(); | ||||
673 | } | ||||
674 | | ||||
675 | int | ||||
664 | EngineController::setVolume( int percent ) //SLOT | 676 | EngineController::setVolume( int percent ) //SLOT | ||
665 | { | 677 | { | ||
666 | percent = qBound<qreal>( 0, percent, 100 ); | 678 | percent = qBound<qreal>( 0, percent, 100 ); | ||
667 | m_volume = percent; | 679 | m_volume = percent; | ||
668 | 680 | | |||
669 | const qreal volume = percent / 100.0; | 681 | const qreal volume = percent / 100.0; | ||
670 | if ( !m_ignoreVolumeChangeAction && m_audio->volume() != volume ) | 682 | if ( !m_ignoreVolumeChangeAction && m_audio->volume() != volume ) | ||
671 | { | 683 | { | ||
▲ Show 20 Lines • Show All 705 Lines • Show Last 20 Lines |