diff --git a/Opal/About/AboutPageBase.qml b/Opal/About/AboutPageBase.qml index 6d72f8c..d2fa960 100644 --- a/Opal/About/AboutPageBase.qml +++ b/Opal/About/AboutPageBase.qml @@ -696,6 +696,20 @@ Page { sources: sourcesUrl } + /*! + Set this property to false to disable the default behavior of calling \l defaultOpenOrCopyUrl when a link is clicked. You can add your own link handler by implementing onOpenOrCopyUrl signal handler. + + \sa openOrCopyUrl + */ + property bool defaultLinkActions: true + + /*! + This signal is called when a link is clicked. + + \sa defaultLinkActions + */ + signal openOrCopyUrl(url externalUrl,string title) + /*! This function shows a page that lets the user preview an external link (\a externalUrl) before either copying it to the clipboard @@ -706,10 +720,14 @@ Page { \sa Qt::openUrlExternally */ - function openOrCopyUrl(externalUrl, title) { + function defaultOpenOrCopyUrl(externalUrl, title) { L.LinkHandler.openOrCopyUrl(externalUrl, title) } + onOpenOrCopyUrl: + if (defaultLinkActions) + defaultOpenOrCopyUrl() + allowedOrientations: Orientation.All SilicaFlickable {