Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libksieve
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
libksieve
Commits
8c588f2f
Commit
8c588f2f
authored
Feb 12, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix clazy warning
parent
3eaea65b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
4 deletions
+6
-4
src/ksieveui/autocreatescripts/autocreatescriptutil.cpp
src/ksieveui/autocreatescripts/autocreatescriptutil.cpp
+1
-1
src/ksieveui/autocreatescripts/sieveactions/sieveactionaddheader.cpp
...i/autocreatescripts/sieveactions/sieveactionaddheader.cpp
+1
-1
src/ksieveui/autocreatescripts/sieveglobalvariablewidget.cpp
src/ksieveui/autocreatescripts/sieveglobalvariablewidget.cpp
+1
-1
src/ksieveui/editor/sieveeditorwidget.cpp
src/ksieveui/editor/sieveeditorwidget.cpp
+1
-1
src/ksieveui/editor/sievesyntaxspellcheckinghighlighter.h
src/ksieveui/editor/sievesyntaxspellcheckinghighlighter.h
+1
-0
src/ksieveui/editor/sievetexteditorspellcheckdecorator.h
src/ksieveui/editor/sievetexteditorspellcheckdecorator.h
+1
-0
No files found.
src/ksieveui/autocreatescripts/autocreatescriptutil.cpp
View file @
8c588f2f
...
...
@@ -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
;
}
src/ksieveui/autocreatescripts/sieveactions/sieveactionaddheader.cpp
View file @
8c588f2f
...
...
@@ -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
...
...
src/ksieveui/autocreatescripts/sieveglobalvariablewidget.cpp
View file @
8c588f2f
...
...
@@ -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
());
}
}
...
...
src/ksieveui/editor/sieveeditorwidget.cpp
View file @
8c588f2f
...
...
@@ -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
);
}
...
...
src/ksieveui/editor/sievesyntaxspellcheckinghighlighter.h
View file @
8c588f2f
...
...
@@ -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
();
...
...
src/ksieveui/editor/sievetexteditorspellcheckdecorator.h
View file @
8c588f2f
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment