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
PIM Messagelib
Commits
0bcf3158
Commit
0bcf3158
authored
Apr 01, 2016
by
Laurent Montel
😁
Browse files
Add script to remove style
parent
5c334acf
Changes
1
Hide whitespace changes
Inline
Side-by-side
messageviewer/src/webengine/webenginescript.cpp
View file @
0bcf3158
...
...
@@ -148,11 +148,13 @@ QString WebEngineScript::scrollToPosition(const QPoint &pos)
return
source
;
}
QString
WebEngineScript
::
removeStyleToElement
(
const
QString
&
element
)
QString
WebEngineScript
::
removeStyleToElement
(
const
QString
&
element
Str
)
{
qDebug
()
<<
"QString WebEngineScript::removeStyleToElement(const QString &element) not implemented"
;
//TODO
return
{};
const
QString
source
=
QString
::
fromLatin1
(
"var element = document.getElementById('%1'); "
"if (element) { "
" element.removeAttribute(
\"
style
\"
);"
"}"
).
arg
(
elementStr
);
return
source
;
}
QString
WebEngineScript
::
setStyleToElement
(
const
QString
&
elementStr
,
const
QString
&
style
)
...
...
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