fix #LINQT-1569 dialer position in call panel
This commit is contained in:
parent
5f203ced1c
commit
e1643fc025
1 changed files with 10 additions and 9 deletions
|
|
@ -674,19 +674,20 @@ AbstractWindow {
|
||||||
}
|
}
|
||||||
Component {
|
Component {
|
||||||
id: dialerPanel
|
id: dialerPanel
|
||||||
ColumnLayout {
|
Item {
|
||||||
id: dialerPanelContent
|
id: dialerPanelContent
|
||||||
Control.StackView.onActivated: rightPanel.headerTitleText = qsTr("Dialer")
|
Control.StackView.onActivated: rightPanel.headerTitleText = qsTr("Dialer")
|
||||||
spacing: 0
|
anchors.top: parent.top
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
Keys.onEscapePressed: (event) => {
|
Keys.onEscapePressed: (event) => {
|
||||||
rightPanel.visible = false
|
rightPanel.visible = false
|
||||||
event.accepted = true
|
event.accepted = true
|
||||||
}
|
}
|
||||||
Item{Layout.fillHeight: true}
|
|
||||||
SearchBar {
|
SearchBar {
|
||||||
Layout.fillWidth: true
|
anchors.leftMargin: 10 * DefaultStyle.dp
|
||||||
Layout.leftMargin: 10 * DefaultStyle.dp
|
anchors.rightMargin: 10 * DefaultStyle.dp
|
||||||
Layout.rightMargin: 10 * DefaultStyle.dp
|
anchors.bottom: numPad.top
|
||||||
|
anchors.bottomMargin: 41 * DefaultStyle.dp
|
||||||
magnifierVisible: false
|
magnifierVisible: false
|
||||||
color: DefaultStyle.grey_0
|
color: DefaultStyle.grey_0
|
||||||
borderColor: DefaultStyle.grey_200
|
borderColor: DefaultStyle.grey_200
|
||||||
|
|
@ -697,11 +698,11 @@ AbstractWindow {
|
||||||
}
|
}
|
||||||
NumericPad {
|
NumericPad {
|
||||||
id: numPad
|
id: numPad
|
||||||
Layout.alignment: Qt.AlignHCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
currentCall: callsModel.currentCall
|
currentCall: callsModel.currentCall
|
||||||
lastRowVisible: false
|
lastRowVisible: false
|
||||||
Layout.topMargin: 41 * DefaultStyle.dp
|
anchors.bottomMargin: 18 * DefaultStyle.dp
|
||||||
Layout.bottomMargin: 18 * DefaultStyle.dp
|
|
||||||
onLaunchCall: {
|
onLaunchCall: {
|
||||||
UtilsCpp.createCall(dialerTextInput.text)
|
UtilsCpp.createCall(dialerTextInput.text)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue