mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-21 21:58:06 +00:00
Change design of chat room's subject edition
This commit is contained in:
parent
f96d964004
commit
bbfdbf6a71
1 changed files with 16 additions and 15 deletions
|
|
@ -124,7 +124,7 @@ ColumnLayout {
|
|||
Layout.topMargin: 15
|
||||
Layout.preferredHeight: implicitHeight
|
||||
Layout.alignment: Qt.AlignBottom
|
||||
visible:chatRoomModel.isMeAdmin
|
||||
visible:chatRoomModel.isMeAdmin && !usernameEdit.visible
|
||||
|
||||
Icon{
|
||||
id:adminIcon
|
||||
|
|
@ -148,6 +148,7 @@ ColumnLayout {
|
|||
Layout.preferredWidth: contentWidth
|
||||
Layout.preferredHeight: contentHeight
|
||||
Layout.alignment: Qt.AlignTop | Qt.AlignLeft
|
||||
visible: !usernameEdit.visible
|
||||
contactDescriptionStyle: ConversationStyle.bar.contactDescription
|
||||
username: avatar.username
|
||||
usernameClickable: chatRoomModel.isMeAdmin
|
||||
|
|
@ -215,21 +216,21 @@ ColumnLayout {
|
|||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
|
||||
TextField{
|
||||
id: usernameEdit
|
||||
anchors.fill: parent
|
||||
//anchors.margins: -1
|
||||
//textFieldStyle : TextFieldStyle.flat
|
||||
text: avatar.username
|
||||
visible: false
|
||||
onEditingFinished: {
|
||||
chatRoomModel.subject = text
|
||||
visible = false
|
||||
}
|
||||
font.bold: true
|
||||
onFocusChanged: if(!focus) visible=false
|
||||
ColumnLayout{
|
||||
id: usernameEdit
|
||||
anchors.fill: parent
|
||||
visible: false
|
||||
TextField{
|
||||
Layout.fillWidth: true
|
||||
text: avatar.username
|
||||
onEditingFinished: {
|
||||
chatRoomModel.subject = text
|
||||
usernameEdit.visible = false
|
||||
}
|
||||
font.bold: true
|
||||
onFocusChanged: if(!focus) usernameEdit.visible = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue