removed html, added keyboard browsing

This commit is contained in:
Jeena 2015-02-04 19:14:27 +01:00
parent 6968d8ed0e
commit 8b132bf559
5 changed files with 29 additions and 16 deletions

View file

@ -5,11 +5,21 @@ import TTRSS 1.0
ScrollView {
property Post post
property int headLinefontSize: 23
property int textfontSize: 14
style: ScrollViewStyle {
transientScrollBars: true
}
function scrollDown() {
flickableItem.contentY += 30
}
function scrollUp() {
}
Item {
height: column.height + 50
width: parent.parent.width
@ -39,7 +49,7 @@ ScrollView {
}
}
color: "gray"
font.pointSize: 16
font.pointSize: textfontSize
textFormat: Text.PlainText
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
width: parent.width
@ -48,7 +58,7 @@ ScrollView {
Label {
text: post ? post.title : ""
font.pointSize: 30
font.pointSize: headLinefontSize
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
width: parent.width
renderType: Text.NativeRendering
@ -62,7 +72,7 @@ ScrollView {
Label {
text: post ? post.date.toLocaleString(Qt.locale(), Locale.LongFormat) : ""
color: "gray"
font.pointSize: 16
font.pointSize: textfontSize
textFormat: Text.PlainText
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
width: parent.width
@ -98,7 +108,7 @@ ScrollView {
id: contentLabel
text: post ? "<style>a { color: #555; }</style>" + post.content : ""
textFormat: Text.RichText
font.pointSize: 16
font.pointSize: textfontSize
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
width: parent.width
renderType: Text.NativeRendering