animation on progress status account connection + key binding open research in history
This commit is contained in:
parent
55ce938d0b
commit
6ccbdf6ef8
5 changed files with 657 additions and 626 deletions
|
|
@ -67,7 +67,7 @@ ListView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onAtYEndChanged: if (atYEnd) {
|
onAtYEndChanged: if (atYEnd && chat) {
|
||||||
chat.core.lMarkAsRead()
|
chat.core.lMarkAsRead()
|
||||||
}
|
}
|
||||||
onAtYBeginningChanged: if (atYBeginning) {
|
onAtYBeginningChanged: if (atYBeginning) {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ Loader{
|
||||||
: contact
|
: contact
|
||||||
? contact.core.defaultAddress
|
? contact.core.defaultAddress
|
||||||
: ''
|
: ''
|
||||||
readonly property string address: SettingsCpp.hideSipAddresses ? UtilsCpp.getUsername(_address) : _address
|
readonly property var address: SettingsCpp.hideSipAddresses ? UtilsCpp.getUsername(_address) : _address
|
||||||
property var displayNameObj: UtilsCpp.getDisplayName(_address)
|
property var displayNameObj: UtilsCpp.getDisplayName(_address)
|
||||||
property var displayNameVal: account && account.core.displayName
|
property var displayNameVal: account && account.core.displayName
|
||||||
? account.core.displayName
|
? account.core.displayName
|
||||||
|
|
@ -126,6 +126,14 @@ Loader{
|
||||||
: (contact
|
: (contact
|
||||||
? contact.core?.presenceIcon
|
? contact.core?.presenceIcon
|
||||||
: "")
|
: "")
|
||||||
|
RotationAnimator on rotation {
|
||||||
|
running: mainItem.account && mainItem.account.core.registrationState === LinphoneEnums.RegistrationState.Progress
|
||||||
|
direction: RotationAnimator.Clockwise
|
||||||
|
from: 0
|
||||||
|
to: 360
|
||||||
|
loops: Animation.Infinite
|
||||||
|
duration: 10000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,15 +73,24 @@ Control.Control{
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
Image {
|
Image {
|
||||||
sourceSize.width: 11 * DefaultStyle.dp
|
id: registrationImage
|
||||||
sourceSize.height: 11 * DefaultStyle.dp
|
sourceSize.width: Math.round(11 * DefaultStyle.dp)
|
||||||
|
sourceSize.height: Math.round(11 * DefaultStyle.dp)
|
||||||
smooth: false
|
smooth: false
|
||||||
Layout.preferredWidth: 11 * DefaultStyle.dp
|
Layout.preferredWidth: Math.round(11 * DefaultStyle.dp)
|
||||||
Layout.preferredHeight: 11 * DefaultStyle.dp
|
Layout.preferredHeight: Math.round(11 * DefaultStyle.dp)
|
||||||
source: presenceBar.isRegistered
|
source: presenceBar.isRegistered
|
||||||
? mainItem.account.core.presenceIcon
|
? mainItem.account.core.presenceIcon
|
||||||
: mainItem.account?.core.registrationIcon || ""
|
: mainItem.account?.core.registrationIcon || ""
|
||||||
Layout.leftMargin: 8 * DefaultStyle.dp
|
Layout.leftMargin: Math.round(8 * DefaultStyle.dp)
|
||||||
|
RotationAnimator on rotation {
|
||||||
|
running: mainItem.account && mainItem.account.core.registrationState === LinphoneEnums.RegistrationState.Progress
|
||||||
|
direction: RotationAnimator.Clockwise
|
||||||
|
from: 0
|
||||||
|
to: 360
|
||||||
|
loops: Animation.Infinite
|
||||||
|
duration: 10000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
id: presenceOrRegistrationText
|
id: presenceOrRegistrationText
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -334,8 +334,8 @@ AbstractMainPage {
|
||||||
SelectedChatView {
|
SelectedChatView {
|
||||||
visible: chat != undefined && chat != null
|
visible: chat != undefined && chat != null
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
chat: mainItem.selectedChatGui || null
|
|
||||||
onChatChanged: if (mainItem.selectedChatGui !== chat) mainItem.selectedChatGui = chat
|
onChatChanged: if (mainItem.selectedChatGui !== chat) mainItem.selectedChatGui = chat
|
||||||
|
chat: mainItem.selectedChatGui ? mainItem.selectedChatGui : null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue