layout->addWidget(backlight);
backlight->setChecked(settings->value("lightson", false).toBool());
+ QCheckBox *grabVolume =
+ new QCheckBox(tr("Navigate with volume keys"), contents);
+ layout->addWidget(grabVolume);
+ grabVolume->setChecked(settings->value("usevolumekeys", false).toBool());
+
QLabel *zoomLabel = new QLabel(tr("Zoom level:"), contents);
layout->addWidget(zoomLabel);
zoomSlider = new QSlider(Qt::Horizontal, contents);
setCentralWidget(scroller);
connect(backlight, SIGNAL(toggled(bool)), this, SLOT(onLightsToggled(bool)));
+ connect(grabVolume, SIGNAL(toggled(bool)),
+ this, SLOT(onGrabVolumeToggled(bool)));
connect(zoomSlider, SIGNAL(valueChanged(int)),
this, SLOT(onSliderValueChanged(int)));
connect(fontButton, SIGNAL(currentFontChanged(const QFont &)),
{
Settings::instance()->setValue("lightson", value);
}
+
+void SettingsWindow::onGrabVolumeToggled(bool enable)
+{
+ Settings::instance()->setValue("usevolumekeys", enable);
+}