]> git.lyx.org Git - features.git/commitdiff
disable the check box for compound word handling because of missing API for it with...
authorStephan Witt <switt@lyx.org>
Wed, 29 Sep 2010 19:05:28 +0000 (19:05 +0000)
committerStephan Witt <switt@lyx.org>
Wed, 29 Sep 2010 19:05:28 +0000 (19:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35541 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiPrefs.cpp
src/frontends/qt4/GuiPrefs.h

index 41a6304ff05d23604d3808b0b86eaa73b65a9388..76fb946f5b31c484f83282504429095aa31e85db 100644 (file)
@@ -1474,7 +1474,15 @@ void PrefSpellchecker::update(LyXRC const & rc)
 }
 
 
-
+void PrefSpellchecker::on_spellcheckerCB_currentIndexChanged(int index)
+{
+       QString spellchecker = spellcheckerCB->itemData(index).toString();
+       
+       compoundWordCB->setEnabled(spellchecker != QString("native"));
+}
+       
+       
+       
 /////////////////////////////////////////////////////////////////////
 //
 // PrefConverters
index 1da64f87c9f2193196dbd9ad8837dcc86c47cac8..494e3bbca64763a5fa921aaefffdf4ed460b1ffe 100644 (file)
@@ -309,6 +309,8 @@ public:
        void apply(LyXRC & rc) const;
        void update(LyXRC const & rc);
 
+private Q_SLOTS:
+       void on_spellcheckerCB_currentIndexChanged(int);
 };