diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-02-18 20:24:11 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-02-18 11:23:23 +0100 |
| commit | 42813aa9ef1b6ada776cf0938ba02dad48a17422 (patch) | |
| tree | 71b65bc669b693cde7ba2b1be5ab1b7f14bcc283 /src/dialogs | |
| parent | 415a5bd7b8288316b52338f359f5cd1280eff0bd (diff) | |
| download | kristall-42813aa9ef1b6ada776cf0938ba02dad48a17422.tar.gz | |
Add optional root/parent toolbar buttons
Diffstat (limited to 'src/dialogs')
| -rw-r--r-- | src/dialogs/settingsdialog.cpp | 12 | ||||
| -rw-r--r-- | src/dialogs/settingsdialog.hpp | 2 | ||||
| -rw-r--r-- | src/dialogs/settingsdialog.ui | 16 |
3 files changed, 30 insertions, 0 deletions
diff --git a/src/dialogs/settingsdialog.cpp b/src/dialogs/settingsdialog.cpp index b943a56..f441824 100644 --- a/src/dialogs/settingsdialog.cpp +++ b/src/dialogs/settingsdialog.cpp @@ -297,6 +297,8 @@ void SettingsDialog::setOptions(const GenericSettings &options) this->ui->enable_home_btn->setChecked(this->current_options.enable_home_btn); this->ui->enable_newtab_btn->setChecked(this->current_options.enable_newtab_btn); + this->ui->enable_root_btn->setChecked(this->current_options.enable_root_btn); + this->ui->enable_parent_btn->setChecked(this->current_options.enable_parent_btn); this->ui->cache_limit->setValue(this->current_options.cache_limit); this->ui->cache_threshold->setValue(this->current_options.cache_threshold); @@ -825,6 +827,16 @@ void SettingsDialog::on_enable_newtab_btn_clicked(bool checked) this->current_options.enable_newtab_btn = checked; } +void SettingsDialog::on_enable_root_btn_clicked(bool checked) +{ + this->current_options.enable_root_btn = checked; +} + +void SettingsDialog::on_enable_parent_btn_clicked(bool checked) +{ + this->current_options.enable_parent_btn = checked; +} + void SettingsDialog::on_cache_limit_valueChanged(int limit) { this->current_options.cache_limit = limit; diff --git a/src/dialogs/settingsdialog.hpp b/src/dialogs/settingsdialog.hpp index 80afcc6..67612c8 100644 --- a/src/dialogs/settingsdialog.hpp +++ b/src/dialogs/settingsdialog.hpp @@ -153,6 +153,8 @@ private slots: void on_enable_home_btn_clicked(bool arg1); void on_enable_newtab_btn_clicked(bool arg1); + void on_enable_root_btn_clicked(bool arg1); + void on_enable_parent_btn_clicked(bool arg1); void on_cache_limit_valueChanged(int limit); void on_cache_threshold_valueChanged(int thres); diff --git a/src/dialogs/settingsdialog.ui b/src/dialogs/settingsdialog.ui index c32489c..c5e65ba 100644 --- a/src/dialogs/settingsdialog.ui +++ b/src/dialogs/settingsdialog.ui @@ -433,6 +433,20 @@ </widget> </item> <item> + <widget class="QCheckBox" name="enable_root_btn"> + <property name="text"> + <string>Root (/)</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="enable_parent_btn"> + <property name="text"> + <string>Parent (..)</string> + </property> + </widget> + </item> + <item> <widget class="QCheckBox" name="enable_newtab_btn"> <property name="text"> <string>New tab</string> @@ -1436,6 +1450,8 @@ <tabstop>network_timeout</tabstop> <tabstop>enable_home_btn</tabstop> <tabstop>enable_newtab_btn</tabstop> + <tabstop>enable_root_btn</tabstop> + <tabstop>enable_parent_btn</tabstop> <tabstop>cache_limit</tabstop> <tabstop>cache_threshold</tabstop> <tabstop>cache_life</tabstop> |
