Commit 997949bc authored by Sanjiban Bairagya's avatar Sanjiban Bairagya Committed by Sanjiban Bairagya

1. Make word-wrap happen in Placemark dialog, by fixing anchors

2. Make Placemark dialog expand to show entire description when
   tapped on description, collapse back when tapped there again
parent fe43fb4b
......@@ -34,6 +34,7 @@ Item {
Text {
id: text
anchors.left: icon.right
anchors.right: parent.right
anchors.leftMargin: Screen.pixelDensity * 1
font.pointSize: 14
wrapMode: Text.WordWrap
......
......@@ -19,6 +19,7 @@ Item {
id: root
property var placemark: null
property bool condensed: true
property string actionIconSource: routeEditor.currentProfileIcon
height: placemark === null ? 0 : Screen.pixelDensity * 6 + infoLayout.height
......@@ -64,7 +65,14 @@ Item {
IconText {
width: parent.width
text: placemark === null ? "" : placemark.description
maximumLineCount: 4
maximumLineCount: condensed ? 4 : undefined
MouseArea {
anchors.fill: parent
onClicked: {
condensed = !condensed
}
}
}
IconText {
......
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