Commit aea845eb authored by Karel Slaný's avatar Karel Slaný

Given up the attempt to make flicking work with VoiceOver on iOS.

parent 97d14b4c
......@@ -40,129 +40,93 @@ Item {
pageView.pop(StackView.Immediate)
}
}
ColumnLayout {
id: columnLayout
Flickable {
id: flickable
z: 0
anchors.top: headerBar.bottom
anchors.right: parent.right
anchors.left: parent.left
anchors.bottom: parent.bottom
spacing: formItemVerticalSpacing * 2
Rectangle {
color: datovkaPalette.window
Layout.fillWidth: true
height: 2 * datovkaLogo.height
}
AccessibleImageButton {
id: datovkaLogo
anchors.horizontalCenter: parent.horizontalCenter
width: imgHeightHeader * 1.4
height: imgHeightHeader * 1.4
source: "qrc:/datovka.png"
accessibleName: qsTr("Open application home page.")
onClicked: {
Qt.openUrlExternally("http://www.datovka.cz/")
}
}
AccessibleText {
id: pageLabel
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width
font.bold: true
color: datovkaPalette.text
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
text: qsTr("Datovka - free mobile Data-Box client") + "\n" + qsTr("Version: %1").arg(settings.appVersion())
}
Flickable {
id: flickableArea
Layout.fillWidth: true
Layout.fillHeight: true
flickableDirection: Flickable.VerticalFlick
contentWidth: textArea.width;
contentHeight: textArea.height
TextArea.flickable: TextArea {
id: textArea
color: datovkaPalette.text
//font: defaultTextFont.font
font.pointSize: defaultTextFont.font.pointSize
textFormat: TextEdit.RichText
//effectiveHorizontalAlignment: TextEdit.AlignHCenter
horizontalAlignment: TextEdit.AlignHCenter
wrapMode: Text.WordWrap
readOnly: true
persistentSelection: true
onLinkActivated: Qt.openUrlExternally(link)
text: {
qsTr("This application provides the means to access data boxes in the ISDS system. It enables you to download and to view the content of messages held within the data box. You can also, with some limitations, send messages from this application.")
+ "<br/><br/>" +
qsTr("You may use this application only at your own risk. The association CZ.NIC is not the operator of the data box system. CZ.NIC is not liable for any damage that may be directly or indirectly caused by using this application.")
+ "<br/><br/>" +
qsTr("If you have problems using this application or want help or you just want more information then start by reading through the information in the <a href=\"%1\">user manual</a> or on the <a href=\"%2\">project web page</a>.")
.arg("https://secure.nic.cz/files/datove_schranky/redirect/mobile-manual.html")
.arg("https://www.datovka.cz/cs/pages/mobilni-datovka.html")
contentHeight: flickContent.implicitHeight
/*
* TODO
* There are bugs in Qt preventing flicing on iOS when VoiceOver
* is activated:
* http://lists.qt-project.org/pipermail/accessibility/2015-March/000073.html
* https://bugreports.qt.io/browse/QTBUG-41980
*/
Pane {
id: flickContent
anchors.fill: parent
Column {
anchors.right: parent.right
anchors.left: parent.left
spacing: formItemVerticalSpacing * 2
AccessibleImageButton {
id: datovkaLogo
anchors.horizontalCenter: parent.horizontalCenter
width: imgHeightHeader * 1.4
height: imgHeightHeader * 1.4
source: "qrc:/datovka.png"
accessibleName: qsTr("Open application home page.")
onClicked: {
Qt.openUrlExternally("http://www.datovka.cz/")
}
}
}
ScrollIndicator.vertical: ScrollIndicator {}
ScrollIndicator.horizontal: ScrollIndicator {}
function moveUp() {
contentY = contentY + (height / 2)
returnToBounds()
}
function moveDown() {
contentY = contentY - (height / 2)
returnToBounds()
}
Accessible.onScrollDownAction: {
moveDown()
}
Accessible.onScrollUpAction: {
moveUp()
}
}
AccessibleText {
id: cznicLabel
anchors.horizontalCenter: parent.horizontalCenter
font.bold: true
color: datovkaPalette.text
text: qsTr("Powered by")
Accessible.focusable: true
}
AccessibleImageButton {
id: cznicLogo
anchors.horizontalCenter: parent.horizontalCenter
sourceSize.height: imgHeightHeader
source: "qrc:/cznic.png"
accessibleName: qsTr("Open home page of the CZ.NIC association.")
onClicked: {
Qt.openUrlExternally("http://www.nic.cz/")
}
}
Rectangle {
color: datovkaPalette.window
Layout.fillWidth: true
height: 3 * cznicLogo.height
}
}
AccessibleText {
id: pageLabel
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width
font.bold: true
color: datovkaPalette.text
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
text: {
qsTr("Datovka - free mobile Data-Box client")
+ "\n" +
qsTr("Version: %1").arg(settings.appVersion())
}
}
AccessibleText {
id: infoLabel
anchors.horizontalCenter: parent.horizontalCenter
color: datovkaPalette.text
width: parent.width
textFormat: TextEdit.RichText
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
onLinkActivated: Qt.openUrlExternally(link)
text: {
qsTr("This application provides the means to access data boxes in the ISDS system. It enables you to download and to view the content of messages held within the data box. You can also, with some limitations, send messages from this application.")
+ "<br/><br/>" +
qsTr("You may use this application only at your own risk. The association CZ.NIC is not the operator of the data box system. CZ.NIC is not liable for any damage that may be directly or indirectly caused by using this application.")
+ "<br/><br/>" +
qsTr("If you have problems using this application or want help or you just want more information then start by reading through the information in the <a href=\"%1\">user manual</a> or on the <a href=\"%2\">project web page</a>.")
.arg("https://secure.nic.cz/files/datove_schranky/redirect/mobile-manual.html")
.arg("https://www.datovka.cz/cs/pages/mobilni-datovka.html")
}
}
AccessibleText {
id: cznicLabel
anchors.horizontalCenter: parent.horizontalCenter
font.bold: true
color: datovkaPalette.text
text: qsTr("Powered by")
}
AccessibleImageButton {
id: cznicLogo
anchors.horizontalCenter: parent.horizontalCenter
sourceSize.height: imgHeightHeader
source: "qrc:/cznic.png"
accessibleName: qsTr("Open home page of the CZ.NIC association.")
onClicked: {
Qt.openUrlExternally("http://www.nic.cz/")
}
}
} // Column layout
} // Pane
ScrollIndicator.vertical: ScrollIndicator {}
} // Flickable
} // Item
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