Commit 936462cb authored by Daniel Vrátil's avatar Daniel Vrátil Committed by Daniel Vrátil
Browse files

Add implementation of missing methods of EmbeddedImageURLHandler

The code is restored from some older revision where it still
existed. Somehow it got lost over time, and since the handler
wasn't registered either the compiler completely ignored the
class so it did not complain.
parent 75f14413
Pipeline #39379 passed with stage
in 43 minutes and 15 seconds
...@@ -236,6 +236,7 @@ URLHandlerManager::URLHandlerManager() ...@@ -236,6 +236,7 @@ URLHandlerManager::URLHandlerManager()
registerHandler(new ShowAuditLogURLHandler()); registerHandler(new ShowAuditLogURLHandler());
registerHandler(new InternalImageURLHandler); registerHandler(new InternalImageURLHandler);
registerHandler(new KRunURLHandler()); registerHandler(new KRunURLHandler());
registerHandler(new EmbeddedImageURLHandler());
} }
URLHandlerManager::~URLHandlerManager() URLHandlerManager::~URLHandlerManager()
...@@ -918,3 +919,16 @@ bool KRunURLHandler::handleClick(const QUrl &url, ViewerPrivate *w) const ...@@ -918,3 +919,16 @@ bool KRunURLHandler::handleClick(const QUrl &url, ViewerPrivate *w) const
return false; return false;
} }
} }
bool EmbeddedImageURLHandler::handleDrag(const QUrl &url, ViewerPrivate *window) const
{
Q_UNUSED(url);
Q_UNUSED(window);
return false;
}
bool EmbeddedImageURLHandler::willHandleDrag(const QUrl &url, ViewerPrivate *window) const
{
Q_UNUSED(window);
return url.scheme() == QLatin1String("cid");
}
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