Commit c3ebff06 authored by Laurent Montel's avatar Laurent Montel 😁

Reactivate code

parent afeba8af
......@@ -628,13 +628,11 @@ void ComposerEditorWebEnginePrivate::_k_slotInsertHtml()
void ComposerEditorWebEnginePrivate::_k_setTextBackgroundColor()
{
#if 0
QColor newColor = ComposerWebEngine::Utils::convertRgbToQColor(evaluateJavascript(QStringLiteral("getTextBackgroundColor()")).toString());
QColor newColor = ComposerEditorWebEngine::Utils::convertRgbToQColor(evaluateJavascript(QStringLiteral("getTextBackgroundColor()")).toString());
newColor = QColorDialog::getColor(newColor, q);
if (newColor.isValid()) {
execCommand(QStringLiteral("hiliteColor"), newColor.name());
}
#endif
}
QVariant ComposerEditorWebEnginePrivate::evaluateJavascript(const QString &command)
......
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