Commit 837c07eb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't check it. Only wrote a comment

parent ea616a91
......@@ -138,12 +138,12 @@ void KMComposerGlobalAction::slotInsertEmoticon(const QString &str)
if (::qobject_cast<PimCommon::LineEditWithAutoCorrection *>(fw)) {
static_cast<PimCommon::LineEditWithAutoCorrection *>(fw)->insertPlainText(str);
} else if (::qobject_cast<KLineEdit *>(fw)) {
//Don't insert emoticon in mail linedit
//static_cast<KLineEdit *>(fw)->insert(str);
} else if (::qobject_cast<KMComposerEditorNg *>(fw)) {
static_cast<QTextEdit *>(fw)->insertPlainText(str);
}
//} else if (::qobject_cast<KLineEdit *>(fw)) {
//Don't insert emoticon in mail linedit
//static_cast<KLineEdit *>(fw)->insert(str);
}
void KMComposerGlobalAction::slotInsertText(const QString &str)
......@@ -155,10 +155,9 @@ void KMComposerGlobalAction::slotInsertText(const QString &str)
if (::qobject_cast<PimCommon::LineEditWithAutoCorrection *>(fw)) {
static_cast<PimCommon::LineEditWithAutoCorrection *>(fw)->insertPlainText(str);
} else if (::qobject_cast<KLineEdit *>(fw)) {
//Don't insert emoticon in mail linedit
//static_cast<KLineEdit *>(fw)->insert(str);
} else if (::qobject_cast<KMComposerEditorNg *>(fw)) {
static_cast<QTextEdit *>(fw)->insertPlainText(str);
}
//Don't insert text in mail linedit
//} else if (::qobject_cast<KLineEdit *>(fw)) {
}
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