From 029ac601a88770893f2a05187578608a9f313adb Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Wed, 29 Sep 2010 19:05:28 +0000 Subject: [PATCH] disable the check box for compound word handling because of missing API for it with apples native spell checker git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35541 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiPrefs.cpp | 10 +++++++++- src/frontends/qt4/GuiPrefs.h | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index 41a6304ff0..76fb946f5b 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -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 diff --git a/src/frontends/qt4/GuiPrefs.h b/src/frontends/qt4/GuiPrefs.h index 1da64f87c9..494e3bbca6 100644 --- a/src/frontends/qt4/GuiPrefs.h +++ b/src/frontends/qt4/GuiPrefs.h @@ -309,6 +309,8 @@ public: void apply(LyXRC & rc) const; void update(LyXRC const & rc); +private Q_SLOTS: + void on_spellcheckerCB_currentIndexChanged(int); }; -- 2.39.2