Skip to content

Commit e36bd04

Browse files
wjyrichdeepin-bot[bot]
authored andcommitted
fix: set page step for volume slider
1. Added setPageStep(2) to volume slider initialization 2. This ensures consistent volume adjustment increments when using page up/down keys 3. Previously missing step value could cause inconsistent volume jumps 4. Matches expected behavior for system volume control fix: 设置音量滑块的页面步长 1. 在音量滑块初始化中添加了 setPageStep(2) 2. 确保在使用页面上下键时音量调整增量为一致值 3. 之前缺少步长值可能导致音量跳跃不一致 4. 符合系统音量控制的预期行为 Pms: BUG-327497
1 parent 722758c commit e36bd04

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plugins/dde-dock/sound/soundapplet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ void SoundApplet::initUi()
6969
m_volumeSlider->setMinimum(0);
7070
m_volumeSlider->setMaximum(SoundModel::ref().maxVolumeUI());
7171
m_volumeSlider->slider()->setTracking(false);
72+
m_volumeSlider->setPageStep(2);
7273
m_sliderContainer->setSlider(m_volumeSlider);
7374
m_sliderContainer->addBackground();
7475
m_sliderContainer->setButtonsSize(QSize(16, 16));

0 commit comments

Comments
 (0)