fix #LINQT-1320 ui call

This commit is contained in:
Gaelle Braud 2024-10-03 17:30:18 +02:00
parent 5b9f5cb056
commit 8a21a00c09
5 changed files with 644 additions and 634 deletions

View file

@ -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();

View file

@ -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,

View file

@ -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

View file

@ -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