aboutsummaryrefslogtreecommitdiff
path: root/src/dialogs/settingsdialog.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-02-15 16:38:45 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-02-15 10:48:07 +0100
commit4805c389a7650d85064a3e959936defb8e16968f (patch)
treea31615f64ee0cc8abf9804c1aa435f501e80b981 /src/dialogs/settingsdialog.cpp
parent22c4fb946f5868e48361ebbef6d0dd378087d5ec (diff)
downloadkristall-4805c389a7650d85064a3e959936defb8e16968f.tar.gz
Added search engine preference
Diffstat (limited to 'src/dialogs/settingsdialog.cpp')
-rw-r--r--src/dialogs/settingsdialog.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dialogs/settingsdialog.cpp b/src/dialogs/settingsdialog.cpp
index 252c7a6..c164171 100644
--- a/src/dialogs/settingsdialog.cpp
+++ b/src/dialogs/settingsdialog.cpp
@@ -218,6 +218,12 @@ void SettingsDialog::setOptions(const GenericSettings &options)
this->ui->start_page->setText(this->current_options.start_page);
+ this->ui->search_engine->clear();
+ this->ui->search_engine->setEditText(this->current_options.search_engine);
+ this->ui->search_engine->addItem("gemini://geminispace.info/search?%1");
+ this->ui->search_engine->addItem("gemini://gus.guru/search?%1");
+ this->ui->search_engine->addItem("gemini://houston.coder.town/search?%1");
+
if(this->current_options.gophermap_display == GenericSettings::PlainText) {
this->ui->gophermap_text->setChecked(true);
} else {
@@ -670,6 +676,11 @@ void SettingsDialog::on_start_page_textChanged(const QString &start_page)
this->current_options.start_page = start_page;
}
+void SettingsDialog::on_search_engine_currentTextChanged(const QString &search_engine)
+{
+ this->current_options.search_engine = search_engine;
+}
+
void SettingsDialog::on_ui_theme_currentIndexChanged(int index)
{
this->current_options.theme = Theme(this->ui->ui_theme->itemData(index).toInt());