Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion Opal/About/AboutPageBase.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down