diff libgui/src/settings-dialog.cc @ 16701:ccfbc767ff5a

make case sensitivity of editors auto completion list configurable * settings-dialog.ui: insert a checkbox for case sensitivity * settings-dialog.cc(read_settings): read state for new checkbox from settings, (write_changed_settings): write state of checkbox into settings file * file-editor-tab.cc(notice-settings): load auto completion case sensitivity from settings
author Torsten <ttl@justmail.de>
date Sat, 25 May 2013 16:36:34 +0200
parents cd7d08b8c928
children 553cfdd5d660
line wrap: on
line diff
--- a/libgui/src/settings-dialog.cc	Sat May 25 15:00:31 2013 +0200
+++ b/libgui/src/settings-dialog.cc	Sat May 25 16:36:34 2013 +0200
@@ -106,6 +106,7 @@
   ui->editor_spinbox_ac_threshold->setValue (settings->value ("editor/codeCompletion_threshold",2).toInt ());
   ui->editor_checkbox_ac_keywords->setChecked (settings->value ("editor/codeCompletion_keywords",true).toBool ());
   ui->editor_checkbox_ac_document->setChecked (settings->value ("editor/codeCompletion_document",false).toBool ());
+  ui->editor_checkbox_ac_case->setChecked (settings->value ("editor/codeCompletion_case",true).toBool ());
   ui->editor_checkbox_ac_replace->setChecked (settings->value ("editor/codeCompletion_replace",false).toBool ());
   ui->editor_longWindowTitle->setChecked (settings->value ("editor/longWindowTitle",false).toBool ());
   ui->editor_restoreSession->setChecked (settings->value ("editor/restoreSession",true).toBool ());
@@ -408,6 +409,7 @@
   settings->setValue ("editor/codeCompletion_threshold", ui->editor_spinbox_ac_threshold->value ());
   settings->setValue ("editor/codeCompletion_keywords", ui->editor_checkbox_ac_keywords->isChecked ());
   settings->setValue ("editor/codeCompletion_document", ui->editor_checkbox_ac_document->isChecked ());
+  settings->setValue ("editor/codeCompletion_case", ui->editor_checkbox_ac_case->isChecked ());
   settings->setValue ("editor/codeCompletion_replace", ui->editor_checkbox_ac_replace->isChecked ());
   settings->setValue ("editor/longWindowTitle", ui->editor_longWindowTitle->isChecked());
   settings->setValue ("editor/restoreSession", ui->editor_restoreSession->isChecked ());