Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KPimTextEdit
Commits
9cfd5cf7
Commit
9cfd5cf7
authored
Sep 14, 2021
by
Laurent Montel
😁
Browse files
Minor optimization
parent
3b68cdf4
Pipeline
#80594
passed with stage
in 7 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/grantleebuilder/markupdirector.cpp
View file @
9cfd5cf7
...
@@ -608,20 +608,20 @@ void MarkupDirector::processOpeningElements(const QTextBlock::iterator &it)
...
@@ -608,20 +608,20 @@ void MarkupDirector::processOpeningElements(const QTextBlock::iterator &it)
m_builder
->
beginStrikeout
();
m_builder
->
beginStrikeout
();
break
;
break
;
case
SpanFontPointSize
:
case
SpanFontPointSize
:
m_builder
->
beginFontPointSize
(
fragmentFormat
.
font
().
pointSize
());
d
->
m_openFontPointSize
=
fragmentFormat
.
font
().
pointSize
();
d
->
m_openFontPointSize
=
fragmentFormat
.
font
().
pointSize
();
m_builder
->
beginFontPointSize
(
d
->
m_openFontPointSize
);
break
;
break
;
case
SpanFontFamily
:
case
SpanFontFamily
:
m_builder
->
beginFontFamily
(
fragmentFormat
.
fontFamily
());
d
->
m_openFontFamily
=
fragmentFormat
.
fontFamily
();
d
->
m_openFontFamily
=
fragmentFormat
.
fontFamily
();
m_builder
->
beginFontFamily
(
d
->
m_openFontFamily
);
break
;
break
;
case
SpanBackground
:
case
SpanBackground
:
m_builder
->
beginBackground
(
fragmentFormat
.
background
());
d
->
m_openBackground
=
fragmentFormat
.
background
();
d
->
m_openBackground
=
fragmentFormat
.
background
();
m_builder
->
beginBackground
(
d
->
m_openBackground
);
break
;
break
;
case
SpanForeground
:
case
SpanForeground
:
m_builder
->
beginForeground
(
fragmentFormat
.
foreground
());
d
->
m_openForeground
=
fragmentFormat
.
foreground
();
d
->
m_openForeground
=
fragmentFormat
.
foreground
();
m_builder
->
beginForeground
(
d
->
m_openForeground
);
break
;
break
;
case
Anchor
:
{
case
Anchor
:
{
// TODO: Multiple anchor names here.
// TODO: Multiple anchor names here.
...
...
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