mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
Merge tag '5.1.0.9' into uos
This commit is contained in:
commit
e7dacb6723
6
.project
Normal file
6
.project
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "homebrew" | "opensource",
|
||||
"3rdparty: ["*.xml"],
|
||||
"ignore": ["CHANGELOG.md", "./debian", "README.md", "./cmake", "technology-overview.md", "CMakeLists.txt", "CMakeLists.txt.user", "./plugins/plugin-guide", "./.tx", "*.qrc", "*.svg", "*.png", "*.qm", "*.ts"],
|
||||
"license": ["LICENSE"]
|
||||
}
|
@ -111,7 +111,7 @@ SoundApplet::SoundApplet(QWidget *parent)
|
||||
|
||||
m_volumeBtn->setFixedSize(ICON_SIZE, ICON_SIZE);
|
||||
m_volumeSlider->setMinimum(0);
|
||||
m_volumeSlider->setMaximum(m_audioInter->maxUIVolume() * 1000.0f);
|
||||
m_volumeSlider->setMaximum(m_audioInter->maxUIVolume() * 100.0f);
|
||||
|
||||
m_centralLayout = new QVBoxLayout;
|
||||
m_centralLayout->addLayout(deviceLineLayout);
|
||||
@ -174,7 +174,7 @@ void SoundApplet::onVolumeChanged()
|
||||
{
|
||||
const float volume = m_defSinkInter->volume();
|
||||
|
||||
m_volumeSlider->setValue(std::min(1500.0f, volume * 1000.0f));
|
||||
m_volumeSlider->setValue(std::min(150.0f, volume * 100.0f));
|
||||
|
||||
m_soundShow->setText(QString::number(volume * 100) + '%');
|
||||
emit volumeChanged(m_volumeSlider->value());
|
||||
@ -183,8 +183,7 @@ void SoundApplet::onVolumeChanged()
|
||||
|
||||
void SoundApplet::volumeSliderValueChanged()
|
||||
{
|
||||
m_defSinkInter->SetVolumeQueued(m_volumeSlider->value() / 1000.0f, false);
|
||||
m_soundShow->setText(QString("%1%").arg(m_volumeSlider->value() / 10));
|
||||
m_defSinkInter->SetVolumeQueued(m_volumeSlider->value() / 100.0f, false);
|
||||
}
|
||||
|
||||
void SoundApplet::sinkInputsChanged()
|
||||
@ -224,7 +223,7 @@ void SoundApplet::onPlaySoundEffect()
|
||||
|
||||
void SoundApplet::increaseVolumeChanged()
|
||||
{
|
||||
m_volumeSlider->setMaximum(m_audioInter->maxUIVolume() * 1000.0f);
|
||||
m_volumeSlider->setMaximum(m_audioInter->maxUIVolume() * 100.0f);
|
||||
}
|
||||
|
||||
void SoundApplet::refreshIcon()
|
||||
|
Loading…
x
Reference in New Issue
Block a user