QTfrontend/ui/page/pageoptions.cpp
changeset 13628 d5e029b84e16
parent 13227 26c739440bef
child 13676 05fde8e30041
--- a/QTfrontend/ui/page/pageoptions.cpp	Tue Aug 07 10:29:01 2018 +0200
+++ b/QTfrontend/ui/page/pageoptions.cpp	Tue Aug 07 11:37:37 2018 +0200
@@ -508,6 +508,13 @@
             CBMusic->setText(QCheckBox::tr("Music"));
             CBMusic->setWhatsThis(QCheckBox::tr("In-game music"));
             groupGame->layout()->addWidget(CBMusic, 1, 2, 1, 2, Qt::AlignLeft);
+
+            // Dampen
+
+            CBDampenAudio = new QCheckBox(groupGame);
+            CBDampenAudio->setText(QCheckBox::tr("Dampen when losing focus"));
+            CBDampenAudio->setWhatsThis(QCheckBox::tr("Reduce the game audio volume if the game window has lost its focus"));
+            groupGame->layout()->addWidget(CBDampenAudio, 2, 1, 1, 3, Qt::AlignLeft);
         }
 
         { // group: frontend