summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-13 07:49:30 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-13 07:49:30 (GMT)
commit82277b9c7d284367c76ae1013161869529ab03c0 (patch)
tree646d055f7f39d5c8173311d2994d23e81db4b5b8
parente8e7d21bdca274070762dc19f469f974a6f8c4f7 (diff)
Disable dnd in some case
-rw-r--r--messageviewer/src/viewer/urlhandlermanager.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/messageviewer/src/viewer/urlhandlermanager.cpp b/messageviewer/src/viewer/urlhandlermanager.cpp
index bf4f0c2..243db46 100644
--- a/messageviewer/src/viewer/urlhandlermanager.cpp
+++ b/messageviewer/src/viewer/urlhandlermanager.cpp
@@ -172,6 +172,7 @@ public:
~ExpandCollapseQuoteURLManager() {}
bool handleClick(const QUrl &, ViewerPrivate *) const Q_DECL_OVERRIDE;
+ bool handleDrag(const QUrl &url, ViewerPrivate *window) const Q_DECL_OVERRIDE;
bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const Q_DECL_OVERRIDE
{
return false;
@@ -265,6 +266,7 @@ public:
bool handleClick(const QUrl &, ViewerPrivate *) const Q_DECL_OVERRIDE;
bool handleContextMenuRequest(const QUrl &, const QPoint &, ViewerPrivate *) const Q_DECL_OVERRIDE;
QString statusBarMessage(const QUrl &, ViewerPrivate *) const Q_DECL_OVERRIDE;
+ bool handleDrag(const QUrl &url, ViewerPrivate *window) const Q_DECL_OVERRIDE;
};
// Handler that prevents dragging of internal images added by KMail, such as the envelope image
@@ -690,6 +692,12 @@ bool ExpandCollapseQuoteURLManager::handleClick(const QUrl &url, ViewerPrivate *
}
return false;
}
+
+bool ExpandCollapseQuoteURLManager::handleDrag(const QUrl &url, ViewerPrivate *window) const
+{
+ return true;
+}
+
QString ExpandCollapseQuoteURLManager::statusBarMessage(const QUrl &url, ViewerPrivate *) const
{
if (url.scheme() == QLatin1String("kmail") && url.path() == QLatin1String("levelquote")) {
@@ -1053,6 +1061,12 @@ QString ShowAuditLogURLHandler::statusBarMessage(const QUrl &url, ViewerPrivate
return i18n("Show GnuPG Audit Log for this operation");
}
}
+
+bool ShowAuditLogURLHandler::handleDrag(const QUrl &url, ViewerPrivate *window) const
+{
+ return true;
+}
+
}
namespace