fix #LINQT-1320 ui call
This commit is contained in:
parent
5b9f5cb056
commit
8a21a00c09
5 changed files with 644 additions and 634 deletions
|
|
@ -421,7 +421,7 @@ void CallModel::onStateChanged(const std::shared_ptr<linphone::Call> &call,
|
|||
linphone::Call::State state,
|
||||
const std::string &message) {
|
||||
lDebug() << "CallModel::onStateChanged" << (int)state;
|
||||
if (state == linphone::Call::State::Connected) {
|
||||
if (state == linphone::Call::State::StreamsRunning) {
|
||||
mDurationTimer.start();
|
||||
// After UpdatedByRemote, video direction could be changed.
|
||||
auto videoDirection = call->getCurrentParams()->getVideoDirection();
|
||||
|
|
|
|||
|
|
@ -90,7 +90,12 @@ QString ToolModel::getDisplayName(QString address) {
|
|||
mustBeInLinphoneThread(QString(gClassName) + " : " + Q_FUNC_INFO);
|
||||
|
||||
QString displayName = getDisplayName(interpretUrl(address));
|
||||
return displayName.isEmpty() ? address : displayName;
|
||||
if (displayName.isEmpty()) return address;
|
||||
QStringList nameSplitted = displayName.split(" ");
|
||||
for (auto &part : nameSplitted) {
|
||||
part[0] = part[0].toUpper();
|
||||
}
|
||||
return nameSplitted.join(" ");
|
||||
}
|
||||
|
||||
bool ToolModel::createCall(const QString &sipAddress,
|
||||
|
|
|
|||
|
|
@ -112,9 +112,9 @@ FocusScope {
|
|||
}
|
||||
}
|
||||
ColumnLayout {
|
||||
spacing: 18 * DefaultStyle.dp
|
||||
visible: contactList.contentHeight > 0
|
||||
Text {
|
||||
text: qsTr("All contacts")
|
||||
text: qsTr("Contacts")
|
||||
font {
|
||||
pixelSize: 16 * DefaultStyle.dp
|
||||
weight: 800 * DefaultStyle.dp
|
||||
|
|
|
|||
|
|
@ -302,7 +302,7 @@ AbstractMainPage {
|
|||
RowLayout {
|
||||
spacing: 0
|
||||
Text {
|
||||
text: qsTr("All contacts")
|
||||
text: qsTr("Contacts")
|
||||
font {
|
||||
pixelSize: 16 * DefaultStyle.dp
|
||||
weight: 800 * DefaultStyle.dp
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue