smsapp: Clean up conversation list title elements

Items in the title are underlapping the chat pane.
Remove fake elipses from placeholder text and remove
New button text.
This commit is contained in:
Mike Noe 2024-03-16 08:38:32 -04:00
parent 97dc63fbb3
commit 08723d5503

View file

@ -103,16 +103,14 @@ Kirigami.ScrollablePage
titleDelegate: RowLayout { titleDelegate: RowLayout {
id: headerLayout id: headerLayout
width: parent.width
Keys.forwardTo: [filter] Keys.forwardTo: [filter]
Kirigami.SearchField { Kirigami.SearchField {
/** /**
* Used as the filter of the list of messages * Used as the filter of the list of messages
*/ */
id: filter id: filter
placeholderText: i18nd("kdeconnect-sms", "Search or start conversation...")
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true placeholderText: i18nd("kdeconnect-sms", "Search or start a conversation")
onTextChanged: { onTextChanged: {
currentSearchText = filter.text; currentSearchText = filter.text;
if (filter.text != "") { if (filter.text != "") {
@ -142,8 +140,6 @@ Kirigami.ScrollablePage
Button { Button {
id: newButton id: newButton
icon.name: "list-add" icon.name: "list-add"
text: i18nd("kdeconnect-sms", "New")
visible: true
enabled: SmsHelper.isAddressValid(filter.text) && deviceConnected enabled: SmsHelper.isAddressValid(filter.text) && deviceConnected
ToolTip.visible: hovered ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
@ -230,7 +226,7 @@ Kirigami.ScrollablePage
Layout.minimumWidth: size Layout.minimumWidth: size
selected: (listItem.highlighted || listItem.checked || listItem.pressed) selected: (listItem.highlighted || listItem.checked || listItem.pressed)
opacity: 1 opacity: 1
visible: source != undefined visible: source !== undefined
} }
// Keep the currently-open chat highlighted even if this element is not focused // Keep the currently-open chat highlighted even if this element is not focused