Commit c2b0b2d8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

We can't implement as it. => remove it for the moment

parent 42a5c006
......@@ -603,6 +603,7 @@ void ViewerPrivate::showAttachmentPopup(KMime::Content *node, const QString &nam
}
}
#if 0 //Reimplement in the future
const bool attachmentInHeader = mViewer->isAttachmentInjectionPoint(globalPos);
const bool hasScrollbar = mViewer->hasVerticalScrollBar();
if (attachmentInHeader && hasScrollbar) {
......@@ -610,6 +611,7 @@ void ViewerPrivate::showAttachmentPopup(KMime::Content *node, const QString &nam
connect(action, SIGNAL(triggered(bool)), attachmentMapper, SLOT(map()));
attachmentMapper->setMapping(action, Viewer::ScrollTo);
}
#endif
action = menu->addAction(QIcon::fromTheme(QStringLiteral("document-save-as")), i18n("Save As..."));
action->setEnabled(!deletedAttachment);
......
......@@ -391,21 +391,6 @@ void MailWebEngineView::toggleFullAddressList(const QString &field, const boost:
runJavaScriptInWordId(MessageViewer::MailWebEngineScript::replaceInnerHtml(field, html));
}
bool MailWebEngineView::hasVerticalScrollBar() const
{
qDebug() << "bool MailWebEngineView::hasVerticalScrollBar() const not implemented";
//TODO
return false;
}
bool MailWebEngineView::isAttachmentInjectionPoint(const QPoint &globalPos) const
{
Q_UNUSED(globalPos);
qDebug() << "bool MailWebEngineView::isAttachmentInjectionPoint(const QPoint &globalPos) const not implemented";
//TODO
return false;
}
void MailWebEngineView::scrollToRelativePosition(qreal pos)
{
runJavaScriptInWordId(WebEngineViewer::WebEngineScript::scrollToRelativePosition(pos));
......
......@@ -57,8 +57,6 @@ public:
void scrollPageUp(int percent);
void injectAttachments(const boost::function<QString()> &delayedHtml);
bool hasVerticalScrollBar() const;
bool isAttachmentInjectionPoint(const QPoint &globalPos) const;
void scrollToRelativePosition(qreal pos);
void setAllowExternalContent(bool b);
......
Supports Markdown
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