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,
|
linphone::Call::State state,
|
||||||
const std::string &message) {
|
const std::string &message) {
|
||||||
lDebug() << "CallModel::onStateChanged" << (int)state;
|
lDebug() << "CallModel::onStateChanged" << (int)state;
|
||||||
if (state == linphone::Call::State::Connected) {
|
if (state == linphone::Call::State::StreamsRunning) {
|
||||||
mDurationTimer.start();
|
mDurationTimer.start();
|
||||||
// After UpdatedByRemote, video direction could be changed.
|
// After UpdatedByRemote, video direction could be changed.
|
||||||
auto videoDirection = call->getCurrentParams()->getVideoDirection();
|
auto videoDirection = call->getCurrentParams()->getVideoDirection();
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,12 @@ QString ToolModel::getDisplayName(QString address) {
|
||||||
mustBeInLinphoneThread(QString(gClassName) + " : " + Q_FUNC_INFO);
|
mustBeInLinphoneThread(QString(gClassName) + " : " + Q_FUNC_INFO);
|
||||||
|
|
||||||
QString displayName = getDisplayName(interpretUrl(address));
|
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,
|
bool ToolModel::createCall(const QString &sipAddress,
|
||||||
|
|
|
||||||
|
|
@ -112,9 +112,9 @@ FocusScope {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 18 * DefaultStyle.dp
|
visible: contactList.contentHeight > 0
|
||||||
Text {
|
Text {
|
||||||
text: qsTr("All contacts")
|
text: qsTr("Contacts")
|
||||||
font {
|
font {
|
||||||
pixelSize: 16 * DefaultStyle.dp
|
pixelSize: 16 * DefaultStyle.dp
|
||||||
weight: 800 * DefaultStyle.dp
|
weight: 800 * DefaultStyle.dp
|
||||||
|
|
|
||||||
|
|
@ -302,7 +302,7 @@ AbstractMainPage {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
Text {
|
Text {
|
||||||
text: qsTr("All contacts")
|
text: qsTr("Contacts")
|
||||||
font {
|
font {
|
||||||
pixelSize: 16 * DefaultStyle.dp
|
pixelSize: 16 * DefaultStyle.dp
|
||||||
weight: 800 * DefaultStyle.dp
|
weight: 800 * DefaultStyle.dp
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue