Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 5295874a authored by Laurent Montel's avatar Laurent Montel 😁

Add autodetect item

parent 8a7ed6cd
......@@ -22,6 +22,7 @@
#include "dictionarycombobox.h"
#include <SonnetCore/sonnet/speller.h>
#include "messagecomposer_debug.h"
#include <KLocalizedString>
namespace MessageComposer
......@@ -115,6 +116,7 @@ void DictionaryComboBox::setCurrentByDictionary(const QString &dictionary)
void DictionaryComboBox::reloadCombo()
addItem(QStringLiteral("autodetect"), i18n("AutoDetect Language"));
Sonnet::Speller *speller = new Sonnet::Speller();
QMap<QString, QString> dictionaries = speller->availableDictionaries();
QMapIterator<QString, QString> i(dictionaries);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment