Commit e758c97b authored by Laurent Montel's avatar Laurent Montel 😁

Remove not necessary code

parent 58bc4c05
......@@ -561,11 +561,6 @@ void Viewer::selectAll()
d->selectAll();
}
void Viewer::clearSelection()
{
Q_D(Viewer);
d->clearSelection();
}
void Viewer::copySelectionToClipboard()
{
......
......@@ -262,7 +262,6 @@ public:
void setPrinting(bool enable);
void selectAll();
void clearSelection();
void copySelectionToClipboard();
void setZoomFactor(qreal zoomFactor);
......
......@@ -2687,11 +2687,6 @@ void ViewerPrivate::selectAll()
mViewer->selectAll();
}
void ViewerPrivate::clearSelection()
{
mViewer->clearSelection();
}
void ViewerPrivate::slotUrlCopy()
{
#ifndef QT_NO_CLIPBOARD
......
......@@ -551,8 +551,6 @@ public Q_SLOTS:
/** Select message body. */
void selectAll();
void clearSelection();
/** Copy URL in mUrlCurrent to clipboard. Removes "mailto:" at
beginning of URL before copying. */
void slotUrlCopy();
......
......@@ -309,11 +309,6 @@ bool MailWebEngineView::isAttachmentInjectionPoint(const QPoint &globalPos) cons
return false;
}
void MailWebEngineView::clearSelection()
{
//TODO
}
void MailWebEngineView::scrollToRelativePosition(double pos)
{
//TODO
......
......@@ -54,7 +54,6 @@ public:
bool hasVerticalScrollBar() const;
bool isAttachmentInjectionPoint(const QPoint &globalPos) const;
void clearSelection();
void scrollToRelativePosition(double pos);
double relativePosition() const;
QUrl linkOrImageUrlAt(const QPoint &global) const;
......
......@@ -153,15 +153,6 @@ void MailWebView::selectAll()
page()->triggerAction(QWebPage::SelectAll);
}
void MailWebView::clearSelection()
{
//This is an ugly hack to remove the selection, I found no other way to do it with QWebView
QMouseEvent event(QEvent::MouseButtonPress, QPoint(10, 10), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
QCoreApplication::sendEvent(page(), &event);
QMouseEvent event2(QEvent::MouseButtonRelease, QPoint(10, 10), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
QCoreApplication::sendEvent(page(), &event2);
}
// Checks if the given node has a child node that is a DIV which has an ID attribute
// with the value specified here
static bool has_parent_div_with_id(const QWebElement &start, const QString &id)
......
......@@ -58,7 +58,6 @@ public:
bool replaceInnerHtml(const QString &id, const boost::function<QString()> &delayedHtml);
void setElementByIdVisible(const QString &id, bool visible);
void selectAll();
void clearSelection();
void scrollToRelativePosition(double pos);
double relativePosition() const;
......
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