diff options
author | 2022-06-23 21:10:13 +0530 | |
---|---|---|
committer | 2022-06-23 21:17:10 +0530 | |
commit | b96a28dbc329d38ba64184b0eae023010d9c2be6 (patch) | |
tree | 1c3981943ab1e3a2c541ac06c6f25feb08bfdac5 /src/settingswidget.cpp | |
parent | 26f5659b793eb574d48e6ffeee4506da98b3c39d (diff) | |
download | whatsie-b96a28dbc329d38ba64184b0eae023010d9c2be6.tar.gz whatsie-b96a28dbc329d38ba64184b0eae023010d9c2be6.zip |
chore: add full view support closes #46
- an option in setting to allow toggle full view mode
- remove unused webchannel module
Diffstat (limited to 'src/settingswidget.cpp')
-rw-r--r-- | src/settingswidget.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/settingswidget.cpp b/src/settingswidget.cpp index 38624f8..4d13cbb 100644 --- a/src/settingswidget.cpp +++ b/src/settingswidget.cpp @@ -76,6 +76,10 @@ SettingsWidget::SettingsWidget(QWidget *parent, int screenNumber, ui->styleComboBox->setCurrentText( settings.value("widgetStyle", "Fusion").toString()); + ui->fullWidthViewCheckbox->blockSignals(true); + ui->fullWidthViewCheckbox->setChecked(settings.value("fullWidthView", true).toBool()); + ui->fullWidthViewCheckbox->blockSignals(false); + ui->automaticThemeCheckBox->blockSignals(true); bool automaticThemeSwitching = settings.value("automaticTheme", false).toBool(); @@ -729,3 +733,10 @@ void SettingsWidget::on_chnageCurrentPasswordPushButton_clicked() { showSetApplockPasswordDialog(); } } + +void SettingsWidget::on_fullWidthViewCheckbox_toggled(bool checked) +{ + settings.setValue("fullWidthView", checked); + emit updateFullWidthView(checked); +} + |