mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-20 13:18:06 +00:00
align right short local messages #LINQT-1975
This commit is contained in:
parent
f974a78fb9
commit
f30d8f3d7f
7 changed files with 44 additions and 42 deletions
|
|
@ -374,8 +374,8 @@ void AccountCore::setUnreadMessageNotifications(int unread) {
|
|||
void AccountCore::onRegistrationStateChanged(const std::shared_ptr<linphone::Account> &account,
|
||||
linphone::RegistrationState state,
|
||||
const std::string &message) {
|
||||
lDebug() << log().arg(Q_FUNC_INFO) << (int)state;
|
||||
mRegistrationState = LinphoneEnums::fromLinphone(state);
|
||||
lDebug() << log().arg(Q_FUNC_INFO) << mRegistrationState;
|
||||
emit registrationStateChanged(Utils::coreStringToAppString(message));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -262,6 +262,7 @@ void CallCore::setSelf(QSharedPointer<CallCore> me) {
|
|||
bool isConf = call && call->getConference() != nullptr;
|
||||
auto subject = call->getConference() ? Utils::coreStringToAppString(call->getConference()->getSubject()) : "";
|
||||
mCallModelConnection->invokeToCore([this, state, subject, isConf]() {
|
||||
lDebug() << log().arg("::onStateChanged") << LinphoneEnums::fromLinphone(state);
|
||||
setRecordable(state == linphone::Call::State::StreamsRunning);
|
||||
setPaused(state == linphone::Call::State::Paused || state == linphone::Call::State::PausedByRemote);
|
||||
if (mConference) mConference->setSubject(subject);
|
||||
|
|
|
|||
|
|
@ -669,64 +669,64 @@
|
|||
<translation>Die Aufnahme wurde in der folgenden Datei gespeichert: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="393"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="418"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="394"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="419"/>
|
||||
<source>call_stats_codec_label</source>
|
||||
<extracomment>"Codec: %1 / %2 kHz"</extracomment>
|
||||
<translation>Codec: %1 / %2 kHz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="397"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="421"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="398"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="422"/>
|
||||
<source>call_stats_bandwidth_label</source>
|
||||
<extracomment>"Bande passante : %1 %2 kbits/s %3 %4 kbits/s"</extracomment>
|
||||
<translation>Bandbreite: %1 %2 kbits/s %3 %4 kbits/s</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="403"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="426"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="404"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="427"/>
|
||||
<source>call_stats_loss_rate_label</source>
|
||||
<extracomment>"Taux de perte: %1% %2%"</extracomment>
|
||||
<translation>Verlustquote: %1% %2%</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="408"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="409"/>
|
||||
<source>call_stats_jitter_buffer_label</source>
|
||||
<extracomment>"Tampon de gigue: %1 ms"</extracomment>
|
||||
<translation>Jitter-Puffer: %1 ms</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="435"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="436"/>
|
||||
<source>call_stats_resolution_label</source>
|
||||
<extracomment>"Définition vidéo : %1 %2 %3 %4"</extracomment>
|
||||
<translation>Videoauflösung: %1 %2 %3 %4</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="441"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="442"/>
|
||||
<source>call_stats_fps_label</source>
|
||||
<extracomment>"FPS : %1 %2 %3 %4"</extracomment>
|
||||
<translation>FPS : %1 %2 %3 %4</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="654"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="655"/>
|
||||
<source>media_encryption_dtls</source>
|
||||
<extracomment>DTLS</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="657"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="658"/>
|
||||
<source>media_encryption_none</source>
|
||||
<extracomment>None</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="660"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="661"/>
|
||||
<source>media_encryption_srtp</source>
|
||||
<extracomment>SRTP</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="663"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="664"/>
|
||||
<source>media_encryption_post_quantum</source>
|
||||
<extracomment>"ZRTP - Post quantique"</extracomment>
|
||||
<translation type="unfinished">Post-quantum ZRTP</translation>
|
||||
|
|
|
|||
|
|
@ -669,64 +669,64 @@
|
|||
<translation>Recording has been saved in file : %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="393"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="418"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="394"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="419"/>
|
||||
<source>call_stats_codec_label</source>
|
||||
<extracomment>"Codec: %1 / %2 kHz"</extracomment>
|
||||
<translation>Codec: %1 / %2 kHz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="397"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="421"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="398"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="422"/>
|
||||
<source>call_stats_bandwidth_label</source>
|
||||
<extracomment>"Bande passante : %1 %2 kbits/s %3 %4 kbits/s"</extracomment>
|
||||
<translation>Bandwidth : %1 %2 kbits/s %3 %4 kbits/s</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="403"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="426"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="404"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="427"/>
|
||||
<source>call_stats_loss_rate_label</source>
|
||||
<extracomment>"Taux de perte: %1% %2%"</extracomment>
|
||||
<translation>Loss rate: %1% %2%</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="408"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="409"/>
|
||||
<source>call_stats_jitter_buffer_label</source>
|
||||
<extracomment>"Tampon de gigue: %1 ms"</extracomment>
|
||||
<translation>Jitter buffer : %1 ms</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="435"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="436"/>
|
||||
<source>call_stats_resolution_label</source>
|
||||
<extracomment>"Définition vidéo : %1 %2 %3 %4"</extracomment>
|
||||
<translation>Video resolution: %1 %2 %3 %4</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="441"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="442"/>
|
||||
<source>call_stats_fps_label</source>
|
||||
<extracomment>"FPS : %1 %2 %3 %4"</extracomment>
|
||||
<translation>FPS : %1 %2 %3 %4</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="654"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="655"/>
|
||||
<source>media_encryption_dtls</source>
|
||||
<extracomment>DTLS</extracomment>
|
||||
<translation>DTLS</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="657"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="658"/>
|
||||
<source>media_encryption_none</source>
|
||||
<extracomment>None</extracomment>
|
||||
<translation>None</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="660"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="661"/>
|
||||
<source>media_encryption_srtp</source>
|
||||
<extracomment>SRTP</extracomment>
|
||||
<translation>SRTP</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="663"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="664"/>
|
||||
<source>media_encryption_post_quantum</source>
|
||||
<extracomment>"ZRTP - Post quantique"</extracomment>
|
||||
<translation>Post quantum ZRTP</translation>
|
||||
|
|
|
|||
|
|
@ -669,64 +669,64 @@
|
|||
<translation>L'appel a été enregistré dans le fichier : %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="393"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="418"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="394"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="419"/>
|
||||
<source>call_stats_codec_label</source>
|
||||
<extracomment>"Codec: %1 / %2 kHz"</extracomment>
|
||||
<translation>Codec: %1 / %2 kHz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="397"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="421"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="398"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="422"/>
|
||||
<source>call_stats_bandwidth_label</source>
|
||||
<extracomment>"Bande passante : %1 %2 kbits/s %3 %4 kbits/s"</extracomment>
|
||||
<translation>Bande passante : %1 %2 kbits/s %3 %4 kbits/s</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="403"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="426"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="404"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="427"/>
|
||||
<source>call_stats_loss_rate_label</source>
|
||||
<extracomment>"Taux de perte: %1% %2%"</extracomment>
|
||||
<translation>Taux de perte: %1% %2%</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="408"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="409"/>
|
||||
<source>call_stats_jitter_buffer_label</source>
|
||||
<extracomment>"Tampon de gigue: %1 ms"</extracomment>
|
||||
<translation>Tampon de gigue: %1 ms</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="435"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="436"/>
|
||||
<source>call_stats_resolution_label</source>
|
||||
<extracomment>"Définition vidéo : %1 %2 %3 %4"</extracomment>
|
||||
<translation>Définition vidéo : %1 %2 %3 %4</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="441"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="442"/>
|
||||
<source>call_stats_fps_label</source>
|
||||
<extracomment>"FPS : %1 %2 %3 %4"</extracomment>
|
||||
<translation>FPS : %1 %2 %3 %4</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="654"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="655"/>
|
||||
<source>media_encryption_dtls</source>
|
||||
<extracomment>DTLS</extracomment>
|
||||
<translation>DTLS</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="657"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="658"/>
|
||||
<source>media_encryption_none</source>
|
||||
<extracomment>None</extracomment>
|
||||
<translation>None</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="660"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="661"/>
|
||||
<source>media_encryption_srtp</source>
|
||||
<extracomment>SRTP</extracomment>
|
||||
<translation>SRTP</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../core/call/CallCore.cpp" line="663"/>
|
||||
<location filename="../../core/call/CallCore.cpp" line="664"/>
|
||||
<source>media_encryption_post_quantum</source>
|
||||
<extracomment>"ZRTP - Post quantique"</extracomment>
|
||||
<translation>ZRTP - Post quantique</translation>
|
||||
|
|
|
|||
|
|
@ -407,7 +407,6 @@ void CallModel::onInfoMessageReceived(const std::shared_ptr<linphone::Call> &cal
|
|||
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::StreamsRunning) {
|
||||
setConference(call->getConference());
|
||||
mDurationTimer.start();
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import Linphone
|
|||
ColumnLayout {
|
||||
id: mainItem
|
||||
property ChatMessageGui chatMessageGui: null
|
||||
property bool isRemoteMessage: chatMessageGui? chatMessageGui.core.isRemoteMessage : false
|
||||
property ChatGui chatGui: null
|
||||
|
||||
signal isFileHoveringChanged(bool isFileHovering)
|
||||
|
|
@ -28,7 +29,7 @@ ColumnLayout {
|
|||
|
||||
spacing: Math.round(5 * DefaultStyle.dp)
|
||||
property int padding: Math.round(10 * DefaultStyle.dp)
|
||||
|
||||
|
||||
// VOICE MESSAGES
|
||||
Repeater {
|
||||
id: messagesVoicesList
|
||||
|
|
@ -97,6 +98,7 @@ ColumnLayout {
|
|||
}
|
||||
delegate: ChatTextContent {
|
||||
Layout.fillWidth: true
|
||||
horizontalAlignment: mainItem.isRemoteMessage || implicitWidth > mainItem.width ? TextEdit.AlignLeft : TextEdit.AlignRight
|
||||
// height: implicitHeight
|
||||
contentGui: modelData
|
||||
chatGui: mainItem.chatGui
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue