mirror of
https://github.com/KDE/kasts.git
synced 2025-01-27 07:46:10 +01:00
More formal declaration of arguments in signal handlers
This commit is contained in:
parent
fa40d2b4c6
commit
19dc371084
@ -490,7 +490,7 @@ FocusScope {
|
||||
onLinkHovered: {
|
||||
cursorShape: Qt.PointingHandCursor;
|
||||
}
|
||||
onLinkActivated: {
|
||||
onLinkActivated: (link) => {
|
||||
if (link.split("://")[0] === "timestamp") {
|
||||
if (AudioManager.entry && AudioManager.entry.enclosure) {
|
||||
AudioManager.seek(link.split("://")[1]);
|
||||
|
@ -241,7 +241,7 @@ Kirigami.ScrollablePage {
|
||||
font.pointSize: SettingsManager && !(SettingsManager.articleFontUseSystem) ? SettingsManager.articleFontSize : Kirigami.Theme.defaultFont.pointSize
|
||||
color: Kirigami.Theme.textColor
|
||||
|
||||
onLinkActivated: {
|
||||
onLinkActivated: (link) => {
|
||||
if (link.split("://")[0] === "timestamp") {
|
||||
if (AudioManager.entry && AudioManager.entry.enclosure && entry.enclosure && (entry.enclosure.status === Enclosure.Downloaded || SettingsManager.prioritizeStreaming)) {
|
||||
if (AudioManager.entry !== entry) {
|
||||
|
@ -293,7 +293,9 @@ Kirigami.ScrollablePage {
|
||||
selectByMouse: !Kirigami.Settings.isMobile
|
||||
textFormat:TextEdit.RichText
|
||||
text: "<a href='%1'>%1</a>".arg(feed.link)
|
||||
onLinkActivated: Qt.openUrlExternally(link)
|
||||
onLinkActivated: (link) => {
|
||||
Qt.openUrlExternally(link);
|
||||
}
|
||||
wrapMode: Text.WordWrap
|
||||
Layout.fillWidth: true
|
||||
color: Kirigami.Theme.textColor
|
||||
|
@ -194,7 +194,7 @@ Kirigami.Page {
|
||||
onLinkHovered: {
|
||||
cursorShape: Qt.PointingHandCursor;
|
||||
}
|
||||
onLinkActivated: {
|
||||
onLinkActivated: (link) => {
|
||||
if (link.split("://")[0] === "timestamp") {
|
||||
if (AudioManager.entry && AudioManager.entry.enclosure) {
|
||||
AudioManager.seek(link.split("://")[1]);
|
||||
|
@ -308,7 +308,9 @@ Kirigami.ScrollablePage {
|
||||
readOnly: true
|
||||
wrapMode: Text.WordWrap
|
||||
textFormat: Text.RichText
|
||||
onLinkActivated: Qt.openUrlExternally(link)
|
||||
onLinkActivated: (link) => {
|
||||
Qt.openUrlExternally(link);
|
||||
}
|
||||
text: Sync.provider === Sync.GPodderNextcloud ?
|
||||
i18nc("argument is a weblink", "Sync with a Nextcloud server that has the GPodder Sync app installed: %1.<br/>It is advised to manually create an app password for Kasts through the web interface and use those credentials." , "<a href=\"https://apps.nextcloud.com/apps/gpoddersync\">https://apps.nextcloud.com/apps/gpoddersync</a>") :
|
||||
i18nc("argument is a weblink", "If you don't already have an account, you should first create one at %1", "<a href=\"https://gpodder.net\">https://gpodder.net</a>")
|
||||
|
Loading…
x
Reference in New Issue
Block a user