Skip to content
GitLab
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
ec9691af
Commit
ec9691af
authored
Apr 02, 2016
by
Laurent Montel
Browse files
Fix show list address
parent
b4a81179
Changes
2
Hide whitespace changes
Inline
Side-by-side
messageviewer/src/viewer/webengine/mailwebengineview.cpp
View file @
ec9691af
...
...
@@ -273,7 +273,7 @@ void MailWebEngineView::toggleFullAddressList(const QString &field, const boost:
}
qDebug
()
<<
"void MailWebEngineView::toggleFullAddressList(const QString &field, const boost::function<QString()> &delayedHtml, bool doShow)"
<<
html
<<
" fields "
<<
field
;
page
()
->
runJavaScript
(
MessageViewer
::
WebEngineScript
::
toggleFullAddressList
(
field
,
QStringLiteral
(
"
*#
attachmentInjectionPoint"
),
doShow
));
page
()
->
runJavaScript
(
MessageViewer
::
WebEngineScript
::
toggleFullAddressList
(
field
,
QStringLiteral
(
"attachmentInjectionPoint"
),
doShow
));
}
bool
MailWebEngineView
::
hasVerticalScrollBar
()
const
...
...
messageviewer/src/webengine/webenginescript.cpp
View file @
ec9691af
...
...
@@ -200,6 +200,19 @@ QString WebEngineScript::injectAttachments(const QString &delayedHtml, const QSt
QString
WebEngineScript
::
toggleFullAddressList
(
const
QString
&
field
,
const
QString
&
html
,
bool
doShow
)
{
const
QString
replaceInnerHtmlStr
=
QLatin1String
(
"iconFull"
)
+
field
+
QLatin1String
(
"AddressList"
);
const
QString
dotsFullStr
=
QLatin1String
(
"dotsFull"
)
+
field
+
QLatin1String
(
"AddressList"
);
const
QString
hiddenFullStr
=
QLatin1String
(
"hiddenFull"
)
+
field
+
QLatin1String
(
"AddressList"
);
const
QString
source
=
QString
::
fromLatin1
(
"var element = document.getElementById('%1'); "
"if (element) { "
" element.innerHTML += '%2';"
" %3;"
" %4;"
"}"
).
arg
(
replaceInnerHtmlStr
).
arg
(
html
)
.
arg
(
MessageViewer
::
WebEngineScript
::
setElementByIdVisible
(
dotsFullStr
,
!
doShow
))
.
arg
(
MessageViewer
::
WebEngineScript
::
setElementByIdVisible
(
hiddenFullStr
,
doShow
));
qDebug
()
<<
"QString WebEngineScript::injectAttachments(const QString &delayedHtml, const QString &elementStr) :"
<<
source
;
return
source
;
#if 0
if (mViewer->replaceInnerHtml(QLatin1String("iconFull") + field + QLatin1String("AddressList"),
bind(&ViewerPrivate::recipientsQuickListLinkHtml, this, doShow, field))) {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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