mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Add some undefined values wrapping.
This commit is contained in:
parent
db66fe33f3
commit
3cff8b59e7
@ -486,7 +486,6 @@ Rectangle {
|
|||||||
Image {
|
Image {
|
||||||
id: currentCoverElement
|
id: currentCoverElement
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
width: paintedWidth
|
|
||||||
|
|
||||||
anchors.leftMargin: 15
|
anchors.leftMargin: 15
|
||||||
anchors.topMargin: 15
|
anchors.topMargin: 15
|
||||||
@ -561,9 +560,9 @@ Rectangle {
|
|||||||
id: currentComicInfoVolume
|
id: currentComicInfoVolume
|
||||||
color: currentComicDetailsFlowView.infoFlowTextColor
|
color: currentComicDetailsFlowView.infoFlowTextColor
|
||||||
font: currentComicDetailsFlowView.infoFont
|
font: currentComicDetailsFlowView.infoFont
|
||||||
text: currentComicInfo.volume
|
text: currentComicInfo.volume ? currentComicInfo.volume : ""
|
||||||
rightPadding: 20
|
rightPadding: 20
|
||||||
visible: currentComicInfo.volume
|
visible: currentComicInfo.volume ? true : false
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
@ -572,34 +571,34 @@ Rectangle {
|
|||||||
font: currentComicDetailsFlowView.infoFont
|
font: currentComicDetailsFlowView.infoFont
|
||||||
text: currentComicInfo.number + "/" + currentComicInfo.count
|
text: currentComicInfo.number + "/" + currentComicInfo.count
|
||||||
rightPadding: 20
|
rightPadding: 20
|
||||||
visible : currentComicInfo.number
|
visible : currentComicInfo.number ? true : false
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: currentComicInfoGenre
|
id: currentComicInfoGenre
|
||||||
color: currentComicDetailsFlowView.infoFlowTextColor
|
color: currentComicDetailsFlowView.infoFlowTextColor
|
||||||
font: currentComicDetailsFlowView.infoFont
|
font: currentComicDetailsFlowView.infoFont
|
||||||
text: currentComicInfo.genere
|
text: currentComicInfo.genere ? currentComicInfo.genere : ""
|
||||||
rightPadding: 20
|
rightPadding: 20
|
||||||
visible: currentComicInfo.genere
|
visible: currentComicInfo.genere ? true : false
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: currentComicInfoDate
|
id: currentComicInfoDate
|
||||||
color: currentComicDetailsFlowView.infoFlowTextColor
|
color: currentComicDetailsFlowView.infoFlowTextColor
|
||||||
font: currentComicDetailsFlowView.infoFont
|
font: currentComicDetailsFlowView.infoFont
|
||||||
text: currentComicInfo.date
|
text: currentComicInfo.date ? currentComicInfo.date : ""
|
||||||
rightPadding: 20
|
rightPadding: 20
|
||||||
visible: currentComicInfo.date
|
visible: currentComicInfo.date ? true : false
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: currentComicInfoPages
|
id: currentComicInfoPages
|
||||||
color: currentComicDetailsFlowView.infoFlowTextColor
|
color: currentComicDetailsFlowView.infoFlowTextColor
|
||||||
font: currentComicDetailsFlowView.infoFont
|
font: currentComicDetailsFlowView.infoFont
|
||||||
text: currentComicInfo.numPages + " pages"
|
text: (currentComicInfo.numPages ? currentComicInfo.numPages : "") + " pages"
|
||||||
rightPadding: 20
|
rightPadding: 20
|
||||||
visible: currentComicInfo.numPages
|
visible: currentComicInfo.numPages ? true : false
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
@ -607,7 +606,7 @@ Rectangle {
|
|||||||
font: currentComicDetailsFlowView.infoFont
|
font: currentComicDetailsFlowView.infoFont
|
||||||
color: "#ffcc00"
|
color: "#ffcc00"
|
||||||
text: "Show in Comic Vine"
|
text: "Show in Comic Vine"
|
||||||
visible: currentComicInfo.comicVineID
|
visible: currentComicInfo.comicVineID ? true : false
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
@ -632,8 +631,8 @@ Rectangle {
|
|||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
horizontalAlignment: Text.AlignJustify
|
horizontalAlignment: Text.AlignJustify
|
||||||
text: currentComicInfo.synopsis
|
text: currentComicInfo.synopsis ? currentComicInfo.synopsis : ""
|
||||||
visible: currentComicInfo.synopsis
|
visible: currentComicInfo.synopsis ? true : false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user