fix: code review
This commit is contained in:
parent
1c00bb2dff
commit
6f3b987346
|
@ -9,6 +9,11 @@ ModalPopup {
|
|||
id: popup
|
||||
title: qsTr("New chat")
|
||||
|
||||
onOpened: {
|
||||
chatKey.text = "";
|
||||
chatKey.forceActiveFocus(Qt.MouseFocusReason)
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: chatKeyBox
|
||||
height: 44
|
||||
|
|
|
@ -10,6 +10,11 @@ ModalPopup {
|
|||
id: popup
|
||||
title: qsTr("Join public chat")
|
||||
|
||||
onOpened: {
|
||||
channelName.text = "";
|
||||
channelName.forceActiveFocus(Qt.MouseFocusReason)
|
||||
}
|
||||
|
||||
Row {
|
||||
id: description
|
||||
Layout.fillHeight: false
|
||||
|
|
|
@ -4,26 +4,13 @@ import QtQuick.Layouts 1.3
|
|||
import "../imports"
|
||||
import "./"
|
||||
|
||||
Item {
|
||||
function open(){
|
||||
popup.open()
|
||||
channelName.text = "";
|
||||
channelName.forceActiveFocus(Qt.MouseFocusReason)
|
||||
}
|
||||
|
||||
function close(){
|
||||
popup.close()
|
||||
}
|
||||
|
||||
property alias title: modalDialogTitle.text
|
||||
|
||||
Popup {
|
||||
property string title: "Default Title"
|
||||
default property alias content : popupContent.children
|
||||
|
||||
property alias footer : footerContent.children
|
||||
|
||||
Popup {
|
||||
id: popup
|
||||
modal: true
|
||||
property alias footer : footerContent.children
|
||||
|
||||
Overlay.modal: Rectangle {
|
||||
color: "#60000000"
|
||||
|
@ -42,7 +29,7 @@ Item {
|
|||
contentItem: Item {
|
||||
Text {
|
||||
id: modalDialogTitle
|
||||
text: "Default Title"
|
||||
text: title
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
font.bold: true
|
||||
|
@ -118,4 +105,4 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue