Commit 30b7d6ee authored by Martin Straka's avatar Martin Straka

Fixed calendar icon position in the QML

parent be08def9
......@@ -66,35 +66,31 @@ ScrollableListView {
width: parent.width
wrapMode: Text.Wrap
}
Row {
anchors.right: parent.right
anchors.left: parent.left
AccessibleTextField {
id: textField
height: inputItemHeight
font.pointSize: defaultTextFont.font.pointSize
text: gsVal
placeholderText: gsPlacehold
width: actionButton.visible ? (parent.width - actionButton.width) : parent.width
InputLineMenu {
id: icox
inputTextControl: textField
isPassword: false
}
onPressAndHold: {
if (settings.useExplicitClipboardOperations()) {
icox.implicitWidth = computeMenuWidth(icox)
icox.open()
}
}
onTextEdited: { // onTextChanged cannot be used here; onEditingFinished ?
root.model.setProperty(index, "gsVal", textField.text)
AccessibleTextField {
id: textField
height: inputItemHeight
font.pointSize: defaultTextFont.font.pointSize
text: gsVal
placeholderText: gsPlacehold
width: parent.width
InputLineMenu {
id: icox
inputTextControl: textField
isPassword: false
}
onPressAndHold: {
if (settings.useExplicitClipboardOperations()) {
icox.implicitWidth = computeMenuWidth(icox)
icox.open()
}
}
onTextEdited: { // onTextChanged cannot be used here; onEditingFinished ?
root.model.setProperty(index, "gsVal", textField.text)
}
AccessibleOverlaidImageButton {
id: actionButton
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
anchors.top: parent.top
anchors.rightMargin: defaultMargin
image.sourceSize.height: imgHeightHeader
image.source: "qrc:/ui/calendar.svg"
......@@ -104,7 +100,7 @@ ScrollableListView {
calendarClicked(index, gsKey, gsVal, gsDescr)
}
}
} // Row
}
} // Column
} // Item
} // Rectangle
......
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