Commit 9dc24a3d authored by Laurent Montel's avatar Laurent Montel 😁

Astyle kdelibs

parent b570e279
......@@ -1831,7 +1831,6 @@ QString ViewerPrivate::renderAttachments(KMime::Content *node, const QColor &bgC
visibility = QStringLiteral("display:none;");
}
QString margin;
if (node != mMessage.data() || headerStylePlugin()->hasMargin()) {
margin = QStringLiteral("padding:2px; margin:2px; ");
......
......@@ -394,14 +394,12 @@ public:
/** Show signature details. */
void setShowSignatureDetails(bool showDetails = true);
/* show or hide the list that points to the attachments */
bool showAttachmentQuicklist() const;
/* show or hide the list that points to the attachments */
void setShowAttachmentQuicklist(bool showAttachmentQuicklist = true);
void scrollToAttachment(KMime::Content *node);
void setUseFixedFont(bool useFixedFont);
......
......@@ -25,15 +25,15 @@ using namespace MessageViewer;
QString MailWebEngineScript::manageShowHideAttachments()
{
const QString source = QString::fromLatin1("qt.jQuery('#kmailshowattachment').click(function(){"
"qt.jQuery('#kmailshowattachment').hide();"
"qt.jQuery(\"#kmailhideattachment\").show();"
"qt.jQuery(\"#attachmentid\").hide()}"
");"
"qt.jQuery('#kmailhideattachment').click(function(){"
"qt.jQuery(\"#kmailhideattachment\").hide();"
"qt.jQuery(\"#kmailshowattachment\").show();"
"qt.jQuery(\"#attachmentid\").show()}"
");");
"qt.jQuery('#kmailshowattachment').hide();"
"qt.jQuery(\"#kmailhideattachment\").show();"
"qt.jQuery(\"#attachmentid\").hide()}"
");"
"qt.jQuery('#kmailhideattachment').click(function(){"
"qt.jQuery(\"#kmailhideattachment\").hide();"
"qt.jQuery(\"#kmailshowattachment\").show();"
"qt.jQuery(\"#attachmentid\").show()}"
");");
return source;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment