Commit affce4fd authored by Timothée Giet's avatar Timothée Giet
Browse files

DialogBackground add scroll buttons

parent 188e2cd5
......@@ -104,7 +104,7 @@ Rectangle {
anchors.margins: 8
anchors.fill: parent
contentWidth: textContent.contentWidth
contentHeight: textContent.contentHeight
contentHeight: iconImage.height + textContent.contentHeight
flickableDirection: Flickable.VerticalFlick
clip: true
......@@ -127,8 +127,9 @@ Rectangle {
Image {
id: iconImage
source: contentIcon
visible: contentIcon != ""
width: 100 * ApplicationInfo.ratio
height: iconImage.width
height: visible ? iconImage.width : 0
sourceSize.width: iconImage.width
sourceSize.height: iconImage.width
anchors.top: button0.bottom
......@@ -147,6 +148,17 @@ Rectangle {
property string style: "<HEAD><STYLE type='text/css'>A {color: black;}</STYLE></HEAD>"
}
}
// The scroll buttons
GCButtonScroll {
anchors.right: parent.right
anchors.rightMargin: 5 * ApplicationInfo.ratio
anchors.bottom: flick.bottom
anchors.bottomMargin: 5 * ApplicationInfo.ratio
onUp: flick.flick(0, 1400)
onDown: flick.flick(0, -1400)
upVisible: flick.visibleArea.yPosition <= 0 ? false : true
downVisible: flick.visibleArea.yPosition + flick.visibleArea.heightRatio >= 1 ? false : true
}
}
Item { width: 1; height: 10 }
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment