Commit 8c588f2f authored by Laurent Montel's avatar Laurent Montel 😁

Fix clazy warning

parent 3eaea65b
......@@ -173,6 +173,6 @@ QString AutoCreateScriptUtil::createFullWhatsThis(const QString &help, const QSt
if (href.isEmpty()) {
return help;
}
const QString fullWhatsThis = QLatin1String("<qt>") + help + QStringLiteral("<br><a href=\'%1\'>%2</a></qt>").arg(href).arg(i18n("More information"));
const QString fullWhatsThis = QLatin1String("<qt>") + help + QStringLiteral("<br><a href=\'%1\'>%2</a></qt>").arg(href, i18n("More information"));
return fullWhatsThis;
}
......@@ -119,7 +119,7 @@ QString SieveActionAddHeader::code(QWidget *w) const
const QLineEdit *value = w->findChild<QLineEdit *>(QStringLiteral("valueedit"));
const QString valueStr = value->text();
return QStringLiteral("addheader %1 \"%2\" \"%3\";").arg(position).arg(headerStr).arg(valueStr);
return QStringLiteral("addheader %1 \"%2\" \"%3\";").arg(position, headerStr, valueStr);
}
QString SieveActionAddHeader::help() const
......
......@@ -58,7 +58,7 @@ void SieveGlobalVariableActionWidget::generatedScript(QString &script)
script += QLatin1String("global ");
script += QStringLiteral("\"%1\";\n").arg(variableName);
if (mSetValueTo->isChecked() && !mVariableValue->text().isEmpty()) {
script += QStringLiteral("set \"%1\" \"%2\";\n").arg(variableName).arg(mVariableValue->text());
script += QStringLiteral("set \"%1\" \"%2\";\n").arg(variableName, mVariableValue->text());
}
}
......
......@@ -444,7 +444,7 @@ void SieveEditorWidget::addMessageEntry(const QString &errorMsg, const QColor &c
QString msg = errorMsg;
msg.replace(QLatin1Char('\n'), QStringLiteral("<br>"));
const QString logText = QStringLiteral("<font color=%1>%2</font>")
.arg(color.name()).arg(msg);
.arg(color.name(), msg);
setDebugScript(logText);
}
......
......@@ -25,6 +25,7 @@ namespace KSieveUi
class SieveTextEdit;
class SieveSyntaxSpellCheckingHighlighter : public KPIMTextEdit::PlainTextSyntaxSpellCheckingHighlighter
{
Q_OBJECT
public:
explicit SieveSyntaxSpellCheckingHighlighter(SieveTextEdit *plainText, const QColor &misspelledColor = Qt::red);
~SieveSyntaxSpellCheckingHighlighter();
......
......@@ -25,6 +25,7 @@ namespace KSieveUi
class SieveTextEdit;
class SieveTextEditorSpellCheckDecorator : public Sonnet::SpellCheckDecorator
{
Q_OBJECT
public:
explicit SieveTextEditorSpellCheckDecorator(SieveTextEdit *plainTextEdit);
bool isSpellCheckingEnabledForBlock(const QString &textBlock) const Q_DECL_OVERRIDE;
......
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