Added option for stripping accents on add dict dialog;
authorBartosz Szatkowski <bulislaw@linux.com>
Thu, 26 Aug 2010 14:46:27 +0000 (16:46 +0200)
committerBartosz Szatkowski <bulislaw@linux.com>
Thu, 26 Aug 2010 14:46:27 +0000 (16:46 +0200)
Extended "cache" button info note to be more descriptive.

trunk/src/plugins/xdxf/src/XdxfLoadDialog.cpp
trunk/src/plugins/xdxf/src/XdxfLoadDialog.h
trunk/src/plugins/xdxf/src/XdxfSettingsDialog.cpp

index 8b4a039..99f6759 100644 (file)
@@ -44,6 +44,9 @@ XdxfLoadDialog::XdxfLoadDialog(QWidget *parent) :
 
     cacheLayout = new QHBoxLayout(this);
     verticalLayout->addLayout(cacheLayout);
+    accentsCheckBox = new QCheckBox(tr("Strip accents \n(searching takes more time, "
+                 "but spelling don't have to be exact)"));
+    verticalLayout->addWidget(accentsCheckBox);
 
     cacheCheckBox = new QCheckBox(tr("Optimize for quicker searches (may take some time)"),this);
     cacheCheckBox->setChecked(true);
@@ -107,6 +110,11 @@ Settings* XdxfLoadDialog::getSettings(QWidget *parent) {
         else {
             settings->setValue("generateCache", "false");
         }
+        if(loadDialog.accentsCheckBox->isChecked())
+            settings->setValue("strip_accents", "true");
+        else
+            settings->setValue("strip_accents", "false");
+
 
         return settings;
     }
index ff8e43f..778af81 100644 (file)
@@ -60,6 +60,7 @@ private:
     QPushButton* browseButton;
     QLabel* browseLabel;
     QCheckBox* cacheCheckBox;
+    QCheckBox* accentsCheckBox;
     QVBoxLayout* verticalLayout;
     QHBoxLayout* browseLayout;
     QHBoxLayout* cacheLayout;
index 73d48e0..c75df67 100644 (file)
@@ -58,8 +58,8 @@ XdxfSettingsDialog::XdxfSettingsDialog(XdxfPlugin *plugin, QWidget *parent) :
 
     cacheLayout = new QHBoxLayout(this);
     verticalLayout->addLayout(cacheLayout);
-    accentsCheckBox = new QCheckBox("Strip accents \n(searching takes more time, "
-                 "but spelling don't have to be exact)");
+    accentsCheckBox = new QCheckBox(tr("Strip accents \n(searching takes more time, "
+                 "but spelling don't have to be exact)"));
     verticalLayout->addWidget(accentsCheckBox);
 
     if(plugin->settings()->value("strip_accents") == "true")
@@ -67,7 +67,7 @@ XdxfSettingsDialog::XdxfSettingsDialog(XdxfPlugin *plugin, QWidget *parent) :
     else
         accentsCheckBox->setChecked(false);
 
-    cacheCheckBox = new QCheckBox(tr("Cached"),this);
+    cacheCheckBox = new QCheckBox(tr("Optimize for quicker searches (may take some time)"),this);
     if(plugin->settings()->value("cached") == "true") {
         cacheCheckBox->setChecked(true);
         _generateCache = true;