Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 7b09eab5 authored by Laurent Montel's avatar Laurent Montel 😁

static variable--

parent 6d4b15db
......@@ -39,8 +39,13 @@ using namespace KSieveUi;
static int MINIMUMACTION = 1;
static int MAXIMUMACTION = 8;
static QString INDENTACTION = QLatin1String(" ");
namespace {
inline const QString indentation()
{
return QLatin1String(" ");
}
}
SieveActionWidget::SieveActionWidget(QWidget *parent)
: QWidget(parent)
......@@ -88,7 +93,7 @@ void SieveActionWidget::generatedScript(QString &script, QStringList &requires,
if (!comment.isEmpty()) {
script += QLatin1Char('#') + comment.replace(QLatin1Char('\n'), QLatin1String("\n#")) + QLatin1Char('\n');
}
script += (onlyActions ? QString() : INDENTACTION) + widgetAction->code(currentWidget) + QLatin1Char('\n');
script += (onlyActions ? QString() : indentation()) + widgetAction->code(currentWidget) + QLatin1Char('\n');
}
}
......
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