mirror of https://github.com/KDE/kasts.git
Don't make text selectable on mobile since it messes up scrolling
This commit is contained in:
parent
0afdb0d50c
commit
b77c3b46af
|
@ -77,7 +77,7 @@ Kirigami.ScrollablePage {
|
||||||
id: textLabel
|
id: textLabel
|
||||||
Layout.margins: Kirigami.Units.gridUnit
|
Layout.margins: Kirigami.Units.gridUnit
|
||||||
readOnly: true
|
readOnly: true
|
||||||
selectByMouse: true
|
selectByMouse: !Kirigami.Settings.isMobile
|
||||||
text: page.entry.content
|
text: page.entry.content
|
||||||
baseUrl: page.entry.baseUrl
|
baseUrl: page.entry.baseUrl
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
|
|
|
@ -46,7 +46,7 @@ Kirigami.ScrollablePage {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
TextEdit {
|
TextEdit {
|
||||||
readOnly: true
|
readOnly: true
|
||||||
selectByMouse: true
|
selectByMouse: !Kirigami.Settings.isMobile
|
||||||
textFormat:TextEdit.RichText
|
textFormat:TextEdit.RichText
|
||||||
text: feed.description
|
text: feed.description
|
||||||
font.pointSize: Math.round(Kirigami.Theme.defaultFont.pointSize * 1.2)
|
font.pointSize: Math.round(Kirigami.Theme.defaultFont.pointSize * 1.2)
|
||||||
|
@ -55,7 +55,7 @@ Kirigami.ScrollablePage {
|
||||||
}
|
}
|
||||||
TextEdit {
|
TextEdit {
|
||||||
readOnly: true
|
readOnly: true
|
||||||
selectByMouse: true
|
selectByMouse: !Kirigami.Settings.isMobile
|
||||||
textFormat:TextEdit.RichText
|
textFormat:TextEdit.RichText
|
||||||
text: i18nc("by <Author(s)>", "by %1", author)
|
text: i18nc("by <Author(s)>", "by %1", author)
|
||||||
visible: author !== ""
|
visible: author !== ""
|
||||||
|
@ -72,7 +72,7 @@ Kirigami.ScrollablePage {
|
||||||
}
|
}
|
||||||
TextEdit {
|
TextEdit {
|
||||||
readOnly: true
|
readOnly: true
|
||||||
selectByMouse: true
|
selectByMouse: !Kirigami.Settings.isMobile
|
||||||
textFormat:TextEdit.RichText
|
textFormat:TextEdit.RichText
|
||||||
text: i18n("Weblink") + ": <a href='%1'>%1</a>".arg(feed.link)
|
text: i18n("Weblink") + ": <a href='%1'>%1</a>".arg(feed.link)
|
||||||
onLinkActivated: Qt.openUrlExternally(link)
|
onLinkActivated: Qt.openUrlExternally(link)
|
||||||
|
@ -81,7 +81,7 @@ Kirigami.ScrollablePage {
|
||||||
}
|
}
|
||||||
TextEdit {
|
TextEdit {
|
||||||
readOnly: true
|
readOnly: true
|
||||||
selectByMouse: true
|
selectByMouse: !Kirigami.Settings.isMobile
|
||||||
textFormat:TextEdit.RichText
|
textFormat:TextEdit.RichText
|
||||||
text: isSubscribed ? i18n("Subscribed since: %1", feed.subscribed.toLocaleString(Qt.locale(), Locale.ShortFormat)) : ""
|
text: isSubscribed ? i18n("Subscribed since: %1", feed.subscribed.toLocaleString(Qt.locale(), Locale.ShortFormat)) : ""
|
||||||
visible: isSubscribed
|
visible: isSubscribed
|
||||||
|
@ -90,7 +90,7 @@ Kirigami.ScrollablePage {
|
||||||
}
|
}
|
||||||
TextEdit {
|
TextEdit {
|
||||||
readOnly: true
|
readOnly: true
|
||||||
selectByMouse: true
|
selectByMouse: !Kirigami.Settings.isMobile
|
||||||
textFormat:TextEdit.RichText
|
textFormat:TextEdit.RichText
|
||||||
text: isSubscribed ? i18n("Last Updated: %1", feed.lastUpdated.toLocaleString(Qt.locale(), Locale.ShortFormat)) : ""
|
text: isSubscribed ? i18n("Last Updated: %1", feed.lastUpdated.toLocaleString(Qt.locale(), Locale.ShortFormat)) : ""
|
||||||
visible: isSubscribed
|
visible: isSubscribed
|
||||||
|
@ -99,7 +99,7 @@ Kirigami.ScrollablePage {
|
||||||
}
|
}
|
||||||
TextEdit {
|
TextEdit {
|
||||||
readOnly: true
|
readOnly: true
|
||||||
selectByMouse: true
|
selectByMouse: !Kirigami.Settings.isMobile
|
||||||
textFormat:TextEdit.RichText
|
textFormat:TextEdit.RichText
|
||||||
text: i18np("1 Episode", "%1 Episodes", feed.entryCount) + ", " + i18np("1 Unplayed", "%1 Unplayed", feed.unreadEntryCount)
|
text: i18np("1 Episode", "%1 Episodes", feed.entryCount) + ", " + i18np("1 Unplayed", "%1 Unplayed", feed.unreadEntryCount)
|
||||||
visible: isSubscribed
|
visible: isSubscribed
|
||||||
|
|
Loading…
Reference in New Issue