Commit 15f3a976 authored by Marco Martin's avatar Marco Martin
Browse files

remove text selection hack on android

parent b86680a2
......@@ -79,6 +79,11 @@ ScrollablePage {
Layout.alignment: Qt.AlignHCenter
onClicked: pageStack.layers.pop();
}
Controls.Button {
text: "Toggle header"
Layout.alignment: Qt.AlignHCenter
onClicked: page.globalToolBarStyle = ApplicationHeaderStyle.None
}
}
......
......@@ -38,6 +38,12 @@ Page {
}
}
header: Controls.Button {
text: "bah"
}
footer: Controls.Button {
text: "buh"
}
Rectangle {
anchors.fill: parent
color: "red"
......
......@@ -67,13 +67,6 @@ Kirigami.ScrollablePage {
Layout.minimumWidth: Kirigami.Units.gridUnit * 12
Layout.minimumHeight: Kirigami.Units.gridUnit * 12
wrapMode: Controls.TextArea.WordWrap
//this to make text selection work on Android
//QQC2 should do this by itself
onPressAndHold: {
forceActiveFocus();
cursorPosition = positionAt(event.x, event.y);
selectWord();
}
}
}
}
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