mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
new call (TODO : find crash origin)
This commit is contained in:
parent
d0bb53ddc6
commit
9fbc6f5bbf
4 changed files with 52 additions and 13 deletions
|
|
@ -192,12 +192,12 @@ FocusScope{
|
|||
}
|
||||
}
|
||||
Item {
|
||||
visible: !mainItem.lastRowVisible
|
||||
visible: mainItem.lastRowVisible
|
||||
// Invisible item to move the last two buttons to the right
|
||||
}
|
||||
Button {
|
||||
id: launchCallButton
|
||||
visible: !mainItem.lastRowVisible
|
||||
visible: mainItem.lastRowVisible
|
||||
implicitWidth: 75 * DefaultStyle.dp
|
||||
implicitHeight: 55 * DefaultStyle.dp
|
||||
Layout.Layout.alignment: Qt.AlignHCenter
|
||||
|
|
@ -221,7 +221,7 @@ FocusScope{
|
|||
}
|
||||
Button {
|
||||
id: eraseButton
|
||||
visible: !mainItem.lastRowVisible
|
||||
visible: mainItem.lastRowVisible
|
||||
leftPadding: 5 * DefaultStyle.dp
|
||||
rightPadding: 5 * DefaultStyle.dp
|
||||
topPadding: 5 * DefaultStyle.dp
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ Control.Popup {
|
|||
}
|
||||
contentItem: NumericPad{
|
||||
id: numPad
|
||||
lastRowVisible: lastRowVisible
|
||||
lastRowVisible: mainItem.lastRowVisible
|
||||
currentCall: mainItem.currentCall
|
||||
onButtonPressed: (text) => {
|
||||
console.log("BUTTON PRESSED NUMPAD")
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ FocusScope {
|
|||
spacing: 22 * DefaultStyle.dp
|
||||
ColumnLayout {
|
||||
spacing: 18 * DefaultStyle.dp
|
||||
visible: mainItem.displayCurrentCalls
|
||||
Text {
|
||||
text: qsTr("Appels en cours")
|
||||
font {
|
||||
|
|
@ -38,7 +39,6 @@ FocusScope {
|
|||
Layout.preferredHeight: callList.height
|
||||
Layout.maximumHeight: mainItem.height/2
|
||||
// Layout.fillHeight: true
|
||||
visible: mainItem.displayCurrentCalls
|
||||
contentHeight: callList.height
|
||||
contentWidth: width
|
||||
RoundedPane {
|
||||
|
|
|
|||
|
|
@ -610,14 +610,50 @@ AbstractWindow {
|
|||
id: numPadPopup
|
||||
width: parent.width
|
||||
roundedBottom: true
|
||||
lastRowVisible: false
|
||||
visible: false
|
||||
leftPadding: 40 * DefaultStyle.dp
|
||||
rightPadding: 40 * DefaultStyle.dp
|
||||
topPadding: 41 * DefaultStyle.dp
|
||||
bottomPadding: 18 * DefaultStyle.dp
|
||||
onLaunchCall: {
|
||||
UtilsCpp.createCall(dialerTextInput.text)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Component {
|
||||
id: newCallPanel
|
||||
NewCallForm {
|
||||
id: newCallForm
|
||||
Control.StackView.onActivated: rightPanel.headerTitleText = qsTr("Nouvel appel")
|
||||
anchors.fill: parent
|
||||
anchors.topMargin: 21 * DefaultStyle.dp
|
||||
anchors.leftMargin: 16 * DefaultStyle.dp
|
||||
anchors.rightMargin: 16 * DefaultStyle.dp
|
||||
groupCallVisible: false
|
||||
searchBarColor: DefaultStyle.grey_0
|
||||
searchBarBorderColor: DefaultStyle.grey_200
|
||||
numPadPopup: numericPad
|
||||
onContactClicked: (contact) => {
|
||||
startCallWithContact(contact, false, rightPanel)
|
||||
}
|
||||
|
||||
Item {
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
height: 402 * DefaultStyle.dp
|
||||
NumericPadPopup {
|
||||
id: numericPad
|
||||
width: parent.width
|
||||
roundedBottom: true
|
||||
visible: newCallForm.searchBar.numericPadButton.checked
|
||||
leftPadding: 40 * DefaultStyle.dp
|
||||
rightPadding: 40 * DefaultStyle.dp
|
||||
topPadding: 41 * DefaultStyle.dp
|
||||
bottomPadding: 18 * DefaultStyle.dp
|
||||
onLaunchCall: {
|
||||
UtilsCpp.createCall(newCallForm.searchBar.text)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1377,16 +1413,19 @@ AbstractWindow {
|
|||
}
|
||||
CheckableButton {
|
||||
id: newCallButton
|
||||
checkable: false
|
||||
checkable: true
|
||||
icon.source: AppIcons.newCall
|
||||
Layout.preferredWidth: 55 * DefaultStyle.dp
|
||||
Layout.preferredHeight: 55 * DefaultStyle.dp
|
||||
icon.width: 32 * DefaultStyle.dp
|
||||
icon.height: 32 * DefaultStyle.dp
|
||||
onClicked: {
|
||||
var mainWin = UtilsCpp.getMainWindow()
|
||||
UtilsCpp.smartShowWindow(mainWin)
|
||||
mainWin.goToNewCall()
|
||||
onCheckedChanged: {
|
||||
if (checked) {
|
||||
rightPanel.visible = true
|
||||
rightPanel.replace(newCallPanel)
|
||||
} else {
|
||||
rightPanel.visible = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue