mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +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.topMargin: 15
|
||||||
Layout.preferredHeight: implicitHeight
|
Layout.preferredHeight: implicitHeight
|
||||||
Layout.alignment: Qt.AlignBottom
|
Layout.alignment: Qt.AlignBottom
|
||||||
visible:chatRoomModel.isMeAdmin
|
visible:chatRoomModel.isMeAdmin && !usernameEdit.visible
|
||||||
|
|
||||||
Icon{
|
Icon{
|
||||||
id:adminIcon
|
id:adminIcon
|
||||||
|
|
@ -148,6 +148,7 @@ ColumnLayout {
|
||||||
Layout.preferredWidth: contentWidth
|
Layout.preferredWidth: contentWidth
|
||||||
Layout.preferredHeight: contentHeight
|
Layout.preferredHeight: contentHeight
|
||||||
Layout.alignment: Qt.AlignTop | Qt.AlignLeft
|
Layout.alignment: Qt.AlignTop | Qt.AlignLeft
|
||||||
|
visible: !usernameEdit.visible
|
||||||
contactDescriptionStyle: ConversationStyle.bar.contactDescription
|
contactDescriptionStyle: ConversationStyle.bar.contactDescription
|
||||||
username: avatar.username
|
username: avatar.username
|
||||||
usernameClickable: chatRoomModel.isMeAdmin
|
usernameClickable: chatRoomModel.isMeAdmin
|
||||||
|
|
@ -215,21 +216,21 @@ ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ColumnLayout{
|
||||||
TextField{
|
id: usernameEdit
|
||||||
id: usernameEdit
|
anchors.fill: parent
|
||||||
anchors.fill: parent
|
visible: false
|
||||||
//anchors.margins: -1
|
TextField{
|
||||||
//textFieldStyle : TextFieldStyle.flat
|
Layout.fillWidth: true
|
||||||
text: avatar.username
|
text: avatar.username
|
||||||
visible: false
|
onEditingFinished: {
|
||||||
onEditingFinished: {
|
chatRoomModel.subject = text
|
||||||
chatRoomModel.subject = text
|
usernameEdit.visible = false
|
||||||
visible = false
|
|
||||||
}
|
|
||||||
font.bold: true
|
|
||||||
onFocusChanged: if(!focus) visible=false
|
|
||||||
}
|
}
|
||||||
|
font.bold: true
|
||||||
|
onFocusChanged: if(!focus) usernameEdit.visible = false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue