Commit 5bfc1815 authored by Laurent Montel's avatar Laurent Montel 😁

USe new dictionnarycombobox

parent 232cce23
......@@ -52,7 +52,7 @@
#include <Libkdepim/KCursorSaver>
#endif
#include <sonnet/dictionarycombobox.h>
#include "widgets/dictionarycombobox.h"
#include <KIdentityManagement/Identity>
#include <MessageCore/StringUtil>
......@@ -1053,12 +1053,12 @@ void ComposerViewBase::setFollowUpDate(const QDate &followUpDate)
mFollowUpDate = followUpDate;
}
Sonnet::DictionaryComboBox *ComposerViewBase::dictionary() const
MessageComposer::DictionaryComboBox *ComposerViewBase::dictionary() const
{
return m_dictionary;
}
void ComposerViewBase::setDictionary(Sonnet::DictionaryComboBox *dictionary)
void ComposerViewBase::setDictionary(MessageComposer::DictionaryComboBox *dictionary)
{
m_dictionary = dictionary;
}
......
......@@ -36,7 +36,7 @@ class QTimer;
class KJob;
class QWidget;
namespace Sonnet {
namespace MessageComposer {
class DictionaryComboBox;
}
......@@ -162,8 +162,8 @@ public:
Akonadi::CollectionComboBox *fccCombo() const;
void setFcc(const Akonadi::Collection &id);
Sonnet::DictionaryComboBox *dictionary() const;
void setDictionary(Sonnet::DictionaryComboBox *dictionary);
MessageComposer::DictionaryComboBox *dictionary() const;
void setDictionary(MessageComposer::DictionaryComboBox *dictionary);
/**
* Widgets for editing differ in client classes, so
......@@ -331,7 +331,7 @@ private:
KIdentityManagement::IdentityManager *m_identMan = nullptr;
MessageComposer::RichTextComposerNg *m_editor = nullptr;
MailTransport::TransportComboBox *m_transport = nullptr;
Sonnet::DictionaryComboBox *m_dictionary = nullptr;
MessageComposer::DictionaryComboBox *m_dictionary = nullptr;
Akonadi::CollectionComboBox *m_fccCombo = nullptr;
Akonadi::Collection m_fccCollection;
QWidget *m_parentWidget = nullptr;
......
......@@ -115,7 +115,7 @@ void DictionaryComboBox::setCurrentByDictionary(const QString &dictionary)
void DictionaryComboBox::reloadCombo()
{
clear();
addItem(QStringLiteral("autodetect"), i18n("AutoDetect Language"));
addItem(i18n("AutoDetect Language"), QStringLiteral("autodetect"));
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