summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-02 06:16:57 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-02 06:16:57 (GMT)
commit3bf3931583fd6daf9610bec498ddfdde362da9bf (patch)
tree52a4ee729c8c72b8da3abd1d6faeb1d3116af273
parent631fa74628e42baae516643aff4903b99181c185 (diff)
Minor coding style
-rw-r--r--src/ksieveui/autocreatescripts/sieveconditions/sieveconditionbody.cpp6
-rw-r--r--src/ksieveui/autocreatescripts/sieveconditions/sieveconditionenvironment.cpp8
-rw-r--r--src/ksieveui/editor/sievetextedit.cpp8
-rw-r--r--src/ksieveui/vacation/vacation.cpp2
-rw-r--r--src/ksieveui/vacation/vacationpagewidget.cpp2
-rw-r--r--src/ksieveui/vacation/vacationutils.cpp2
-rw-r--r--src/ksieveui/widgets/managesievewidget.cpp6
7 files changed, 17 insertions, 17 deletions
diff --git a/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionbody.cpp b/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionbody.cpp
index 4a1de29..d2c91ce 100644
--- a/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionbody.cpp
+++ b/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionbody.cpp
@@ -68,7 +68,7 @@ QWidget *SieveConditionBody::createParamWidget(QWidget *parent) const
QString SieveConditionBody::code(QWidget *w) const
{
- const SelectBodyTypeWidget *bodyType = w->findChild<SelectBodyTypeWidget *>(QStringLiteral("bodytype"));
+ const SelectBodyTypeWidget *bodyType = w->findChild<SelectBodyTypeWidget *>(QStringLiteral("bodytype"));
const QString bodyValue = bodyType->code();
const SelectMatchTypeComboBox *matchType = w->findChild<SelectMatchTypeComboBox *>(QStringLiteral("matchtype"));
bool isNegative = false;
@@ -138,14 +138,14 @@ bool SieveConditionBody::setParamWidgetValue(const QDomElement &element, QWidget
}
if (strValue.count() == 1) {
- SelectBodyTypeWidget *bodyType = w->findChild<SelectBodyTypeWidget *>(QStringLiteral("bodytype"));
+ SelectBodyTypeWidget *bodyType = w->findChild<SelectBodyTypeWidget *>(QStringLiteral("bodytype"));
bodyType->setCode(tagValueList.at(0), QString(), name(), error);
SelectMatchTypeComboBox *matchType = w->findChild<SelectMatchTypeComboBox *>(QStringLiteral("matchtype"));
matchType->setCode(tagValueList.at(1), name(), error);
QLineEdit *edit = w->findChild<QLineEdit *>(QStringLiteral("edit"));
edit->setText(AutoCreateScriptUtil::quoteStr(strValue.at(0)));
} else if (strValue.count() == 2) {
- SelectBodyTypeWidget *bodyType = w->findChild<SelectBodyTypeWidget *>(QStringLiteral("bodytype"));
+ SelectBodyTypeWidget *bodyType = w->findChild<SelectBodyTypeWidget *>(QStringLiteral("bodytype"));
bodyType->setCode(tagValueList.at(0), indexStr == 2 ? strValue.at(0) : QString(), name(), error);
SelectMatchTypeComboBox *matchType = w->findChild<SelectMatchTypeComboBox *>(QStringLiteral("matchtype"));
matchType->setCode(tagValueList.at(1), name(), error);
diff --git a/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionenvironment.cpp b/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionenvironment.cpp
index 6a682eb..b45b422 100644
--- a/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionenvironment.cpp
+++ b/src/ksieveui/autocreatescripts/sieveconditions/sieveconditionenvironment.cpp
@@ -81,10 +81,10 @@ QWidget *SieveConditionEnvironment::createParamWidget(QWidget *parent) const
QString SieveConditionEnvironment::code(QWidget *w) const
{
- const QLineEdit *item = w->findChild<QLineEdit *>(QStringLiteral("item"));
+ const QLineEdit *item = w->findChild<QLineEdit *>(QStringLiteral("item"));
const QString itemStr = item->text();
- const QLineEdit *value = w->findChild<QLineEdit *>(QStringLiteral("value"));
+ const QLineEdit *value = w->findChild<QLineEdit *>(QStringLiteral("value"));
const QString valueStr = value->text();
return QStringLiteral("environment \"%1\" \"%2\"").arg(itemStr, valueStr);
@@ -120,10 +120,10 @@ bool SieveConditionEnvironment::setParamWidgetValue(const QDomElement &element,
const QString tagName = e.tagName();
if (tagName == QLatin1String("str")) {
if (index == 0) {
- QLineEdit *item = w->findChild<QLineEdit *>(QStringLiteral("item"));
+ QLineEdit *item = w->findChild<QLineEdit *>(QStringLiteral("item"));
item->setText(AutoCreateScriptUtil::quoteStr(e.text()));
} else if (index == 1) {
- QLineEdit *value = w->findChild<QLineEdit *>(QStringLiteral("value"));
+ QLineEdit *value = w->findChild<QLineEdit *>(QStringLiteral("value"));
value->setText(AutoCreateScriptUtil::quoteStr(e.text()));
} else {
tooManyArgument(tagName, index, 2, error);
diff --git a/src/ksieveui/editor/sievetextedit.cpp b/src/ksieveui/editor/sievetextedit.cpp
index 101f19f..9de1cc2 100644
--- a/src/ksieveui/editor/sievetextedit.cpp
+++ b/src/ksieveui/editor/sievetextedit.cpp
@@ -229,7 +229,7 @@ bool SieveTextEdit::openVariableHelp()
{
if (!textCursor().hasSelection()) {
const QString word = selectedWord();
- const KSieveUi::SieveEditorUtil::HelpVariableName type = KSieveUi::SieveEditorUtil::strToVariableName(word);
+ const KSieveUi::SieveEditorUtil::HelpVariableName type = KSieveUi::SieveEditorUtil::strToVariableName(word);
if (type != KSieveUi::SieveEditorUtil::UnknownHelp) {
const QUrl url = KSieveUi::SieveEditorUtil::helpUrl(type);
if (!url.isEmpty()) {
@@ -260,7 +260,7 @@ void SieveTextEdit::keyPressEvent(QKeyEvent *e)
QPlainTextEdit::keyPressEvent(e);
if (e->key() == Qt::Key_F1 && !textCursor().hasSelection()) {
const QString word = selectedWord();
- const KSieveUi::SieveEditorUtil::HelpVariableName type = KSieveUi::SieveEditorUtil::strToVariableName(word);
+ const KSieveUi::SieveEditorUtil::HelpVariableName type = KSieveUi::SieveEditorUtil::strToVariableName(word);
if (type != KSieveUi::SieveEditorUtil::UnknownHelp) {
const QUrl url = KSieveUi::SieveEditorUtil::helpUrl(type);
if (!url.isEmpty()) {
@@ -296,7 +296,7 @@ void SieveTextEdit::addExtraMenuEntry(QMenu *menu, QPoint pos)
if (!textCursor().hasSelection()) {
const QString word = selectedWord(pos);
- const KSieveUi::SieveEditorUtil::HelpVariableName type = KSieveUi::SieveEditorUtil::strToVariableName(word);
+ const KSieveUi::SieveEditorUtil::HelpVariableName type = KSieveUi::SieveEditorUtil::strToVariableName(word);
if (type != KSieveUi::SieveEditorUtil::UnknownHelp) {
QAction *separator = new QAction(menu);
separator->setSeparator(true);
@@ -326,7 +326,7 @@ void SieveTextEdit::slotHelp()
QAction *act = qobject_cast<QAction *>(sender());
if (act) {
const QString word = act->data().toString();
- const KSieveUi::SieveEditorUtil::HelpVariableName type = KSieveUi::SieveEditorUtil::strToVariableName(word);
+ const KSieveUi::SieveEditorUtil::HelpVariableName type = KSieveUi::SieveEditorUtil::strToVariableName(word);
const QUrl url = KSieveUi::SieveEditorUtil::helpUrl(type);
if (!url.isEmpty()) {
Q_EMIT openHelp(url);
diff --git a/src/ksieveui/vacation/vacation.cpp b/src/ksieveui/vacation/vacation.cpp
index 11e4dca..0d6b602 100644
--- a/src/ksieveui/vacation/vacation.cpp
+++ b/src/ksieveui/vacation/vacation.cpp
@@ -179,7 +179,7 @@ void Vacation::slotDialogOk()
vacation.notificationInterval = mDialog->notificationInterval();
vacation.aliases = mDialog->mailAliases();
vacation.sendForSpam = mDialog->sendForSpam();
- vacation.reactOndomainName = mDialog->domainName();
+ vacation.reactOndomainName = mDialog->domainName();
vacation.startDate = mDialog->startDate();
vacation.startTime = mDialog->startTime();
vacation.endDate = mDialog->endDate();
diff --git a/src/ksieveui/vacation/vacationpagewidget.cpp b/src/ksieveui/vacation/vacationpagewidget.cpp
index 46b6db7..5d335a1 100644
--- a/src/ksieveui/vacation/vacationpagewidget.cpp
+++ b/src/ksieveui/vacation/vacationpagewidget.cpp
@@ -169,7 +169,7 @@ KSieveUi::VacationCreateScriptJob *VacationPageWidget::writeScript()
vacation.notificationInterval = mVacationEditWidget->notificationInterval();
vacation.aliases = mVacationEditWidget->mailAliases();
vacation.sendForSpam = mVacationEditWidget->sendForSpam();
- vacation.reactOndomainName = mVacationEditWidget->domainName();
+ vacation.reactOndomainName = mVacationEditWidget->domainName();
if (mHasDateSupport) {
vacation.startDate = mVacationEditWidget->startDate();
vacation.startTime = mVacationEditWidget->startTime();
diff --git a/src/ksieveui/vacation/vacationutils.cpp b/src/ksieveui/vacation/vacationutils.cpp
index ec501fb..32498b0 100644
--- a/src/ksieveui/vacation/vacationutils.cpp
+++ b/src/ksieveui/vacation/vacationutils.cpp
@@ -139,7 +139,7 @@ VacationUtils::Vacation parseScriptLegacy(const QString &script)
{
KSieveUi::VacationUtils::Vacation vacation;
vacation.active = true;
- vacation.valid = Legacy::VacationUtils::parseScript(script, vacation.messageText,
+ vacation.valid = Legacy::VacationUtils::parseScript(script, vacation.messageText,
vacation.subject,
vacation.notificationInterval, vacation.aliases,
vacation.sendForSpam, vacation.reactOndomainName,
diff --git a/src/ksieveui/widgets/managesievewidget.cpp b/src/ksieveui/widgets/managesievewidget.cpp
index 51a6fe6..c69354c 100644
--- a/src/ksieveui/widgets/managesievewidget.cpp
+++ b/src/ksieveui/widgets/managesievewidget.cpp
@@ -364,7 +364,7 @@ void ManageSieveWidget::clear()
void ManageSieveWidget::slotRenameScript()
{
- QTreeWidgetItem *currentItem = d->mTreeView->currentItem();
+ QTreeWidgetItem *currentItem = d->mTreeView->currentItem();
if (!isFileNameItem(currentItem)) {
return;
}
@@ -421,7 +421,7 @@ void ManageSieveWidget::slotRenameResult(KManageSieve::SieveJob *job, bool succe
void ManageSieveWidget::slotDeleteScript()
{
- QTreeWidgetItem *currentItem = d->mTreeView->currentItem();
+ QTreeWidgetItem *currentItem = d->mTreeView->currentItem();
if (!isFileNameItem(currentItem)) {
return;
}
@@ -606,7 +606,7 @@ void ManageSieveWidget::enableDisableActions(bool &newScriptAction, bool &editSc
desactivateScriptAction = false;
} else {
if (serverHasError(item) || !mJobs.keys(item).isEmpty()) {
- newScriptAction = false;
+ newScriptAction = false;
} else {
newScriptAction = mUrls.count(item);
}