8import org.kde.kirigami as Kirigami
9import org.kde.kirigami.private as KirigamiPrivate
10import QtQuick.Controls as QQC2
28 enabled: url.length > 0
29 visible: text.length > 0
30 acceptedButtons: Qt.LeftButton | Qt.RightButton
33 Accessible.description: text !== url
34 ? qsTr("Open link %1",
"@info:whatsthis").arg(url)
35 : qsTr(
"Open link",
"@info:whatsthis")
38 if (mouse.button ===
Qt.RightButton) {
44 if (mouse.button !==
Qt.RightButton) {
45 Qt.openUrlExternally(url);
51 visible: button.text !== button.url && button.mouseArea.containsMouse
58 text: qsTr(
"Copy Link to Clipboard")
59 icon.name: "edit-copy"
60 onClicked: KirigamiPrivate.CopyHelperPrivate.copyTextToClipboard(button.url)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:09:31 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.