aboutsummaryrefslogtreecommitdiff
path: root/src/settingswidget.cpp
diff options
context:
space:
mode:
authorLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-06-23 21:10:13 +0530
committerLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-06-23 21:17:10 +0530
commitb96a28dbc329d38ba64184b0eae023010d9c2be6 (patch)
tree1c3981943ab1e3a2c541ac06c6f25feb08bfdac5 /src/settingswidget.cpp
parent26f5659b793eb574d48e6ffeee4506da98b3c39d (diff)
downloadwhatsie-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.cpp11
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);
+}
+