summaryrefslogtreecommitdiffstats
path: root/scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp
diff options
context:
space:
mode:
authorcraig <craig@11d20701-8431-0410-a711-e3c959e3b870>2012-05-03 07:40:30 +0000
committercraig <craig@11d20701-8431-0410-a711-e3c959e3b870>2012-05-03 07:40:30 +0000
commit020a92a1d225b2a84feb5dfbb8aa126801571d26 (patch)
tree4200f068a72fda5926d63c8a55ac032d688b503e /scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp
parentc83b8f82137d7a071334cd8246b3b510374bf474 (diff)
downloadscribus-020a92a1d225b2a84feb5dfbb8aa126801571d26.tar.gz
scribus-020a92a1d225b2a84feb5dfbb8aa126801571d26.tar.xz
scribus-020a92a1d225b2a84feb5dfbb8aa126801571d26.zip
Bump hunspell some more, add it some real finding/use of dicts from common locations
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17490 11d20701-8431-0410-a711-e3c959e3b870
Diffstat (limited to 'scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp')
-rw-r--r--scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp b/scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp
index 8322a0d..b10a56f 100644
--- a/scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp
+++ b/scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp
@@ -30,15 +30,19 @@ HunspellDialog::HunspellDialog(QWidget *parent, ScribusDoc *doc, StoryText *iTex
m_primaryLangIndex=0;
}
-void HunspellDialog::set(QStringList *dictEntries, Hunspell **hspellers, QList<WordsFound> *wfList)
+void HunspellDialog::set(QMap<QString, QString>* dictionaryMap, Hunspell **hspellers, QList<WordsFound> *wfList)
{
- m_dictEntries=dictEntries;
+ m_dictionaryMap=dictionaryMap;
m_hspellers=hspellers;
m_wfList=wfList;
bool b=languagesComboBox->blockSignals(true);
languagesComboBox->clear();
- for(int i=0;i<dictEntries->count();++i)
- languagesComboBox->addItem(LanguageManager::instance()->getLangFromAbbrev(dictEntries->at(i), true));
+ QMap<QString, QString>::iterator it = m_dictionaryMap->begin();
+ while (it != dictionaryMap->end())
+ {
+ languagesComboBox->addItem(LanguageManager::instance()->getLangFromAbbrev(it.key(), true));
+ ++it;
+ }
languagesComboBox->setCurrentIndex(0);
m_primaryLangIndex=0;
languagesComboBox->blockSignals(b);