fix #LINQT-1852 senf files without text
This commit is contained in:
parent
8eae18512c
commit
c0f879bd19
5 changed files with 16 additions and 15 deletions
|
|
@ -4955,25 +4955,25 @@ Pour les activer dans un projet commercial, merci de nous contacter.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="569"/>
|
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="570"/>
|
||||||
<source>shared_medias_title</source>
|
<source>shared_medias_title</source>
|
||||||
<extracomment>Shared medias</extracomment>
|
<extracomment>Shared medias</extracomment>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="571"/>
|
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="572"/>
|
||||||
<source>shared_documents_title</source>
|
<source>shared_documents_title</source>
|
||||||
<extracomment>Shared documents</extracomment>
|
<extracomment>Shared documents</extracomment>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="600"/>
|
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="601"/>
|
||||||
<source>forward_to_title</source>
|
<source>forward_to_title</source>
|
||||||
<extracomment>Forward to…</extracomment>
|
<extracomment>Forward to…</extracomment>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="634"/>
|
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="635"/>
|
||||||
<source>conversations_title</source>
|
<source>conversations_title</source>
|
||||||
<extracomment>Conversations</extracomment>
|
<extracomment>Conversations</extracomment>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
|
|
||||||
|
|
@ -4854,25 +4854,25 @@ To enable them in a commercial project, please contact us.</translation>
|
||||||
<translation>Reply to %1</translation>
|
<translation>Reply to %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="569"/>
|
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="570"/>
|
||||||
<source>shared_medias_title</source>
|
<source>shared_medias_title</source>
|
||||||
<extracomment>Shared medias</extracomment>
|
<extracomment>Shared medias</extracomment>
|
||||||
<translation>Shared medias</translation>
|
<translation>Shared medias</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="571"/>
|
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="572"/>
|
||||||
<source>shared_documents_title</source>
|
<source>shared_documents_title</source>
|
||||||
<extracomment>Shared documents</extracomment>
|
<extracomment>Shared documents</extracomment>
|
||||||
<translation>Shared documents</translation>
|
<translation>Shared documents</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="600"/>
|
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="601"/>
|
||||||
<source>forward_to_title</source>
|
<source>forward_to_title</source>
|
||||||
<extracomment>Forward to…</extracomment>
|
<extracomment>Forward to…</extracomment>
|
||||||
<translation>Froward to…</translation>
|
<translation>Froward to…</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="634"/>
|
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="635"/>
|
||||||
<source>conversations_title</source>
|
<source>conversations_title</source>
|
||||||
<extracomment>Conversations</extracomment>
|
<extracomment>Conversations</extracomment>
|
||||||
<translation>Conversations</translation>
|
<translation>Conversations</translation>
|
||||||
|
|
|
||||||
|
|
@ -4854,25 +4854,25 @@ Pour les activer dans un projet commercial, merci de nous contacter.</translatio
|
||||||
<translation>Réponse à %1</translation>
|
<translation>Réponse à %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="569"/>
|
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="570"/>
|
||||||
<source>shared_medias_title</source>
|
<source>shared_medias_title</source>
|
||||||
<extracomment>Shared medias</extracomment>
|
<extracomment>Shared medias</extracomment>
|
||||||
<translation>Médias partagés</translation>
|
<translation>Médias partagés</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="571"/>
|
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="572"/>
|
||||||
<source>shared_documents_title</source>
|
<source>shared_documents_title</source>
|
||||||
<extracomment>Shared documents</extracomment>
|
<extracomment>Shared documents</extracomment>
|
||||||
<translation>Documents partagés</translation>
|
<translation>Documents partagés</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="600"/>
|
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="601"/>
|
||||||
<source>forward_to_title</source>
|
<source>forward_to_title</source>
|
||||||
<extracomment>Forward to…</extracomment>
|
<extracomment>Forward to…</extracomment>
|
||||||
<translation>Transférer à…</translation>
|
<translation>Transférer à…</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="634"/>
|
<location filename="../../view/Page/Form/Chat/SelectedChatView.qml" line="635"/>
|
||||||
<source>conversations_title</source>
|
<source>conversations_title</source>
|
||||||
<extracomment>Conversations</extracomment>
|
<extracomment>Conversations</extracomment>
|
||||||
<translation>Conversations</translation>
|
<translation>Conversations</translation>
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,11 @@ Control.Control {
|
||||||
// property alias placeholderText: sendingTextArea.placeholderText
|
// property alias placeholderText: sendingTextArea.placeholderText
|
||||||
property string text
|
property string text
|
||||||
property var textArea
|
property var textArea
|
||||||
|
property int selectedFilesCount: 0
|
||||||
// property alias cursorPosition: sendingTextArea.cursorPosition
|
// property alias cursorPosition: sendingTextArea.cursorPosition
|
||||||
property bool emojiPickerButtonChecked
|
property bool emojiPickerButtonChecked
|
||||||
|
|
||||||
property bool dropEnabled: true
|
property bool dropEnabled: true
|
||||||
property string dropDisabledReason
|
|
||||||
property bool isEphemeral : false
|
property bool isEphemeral : false
|
||||||
property bool emojiVisible: false
|
property bool emojiVisible: false
|
||||||
|
|
||||||
|
|
@ -190,7 +190,7 @@ Control.Control {
|
||||||
ToolTip.visible: !enabled && hovered
|
ToolTip.visible: !enabled && hovered
|
||||||
//: Cannot record a message while a call is ongoing
|
//: Cannot record a message while a call is ongoing
|
||||||
ToolTip.text: qsTr("cannot_record_while_in_call_tooltip")
|
ToolTip.text: qsTr("cannot_record_while_in_call_tooltip")
|
||||||
visible: sendingTextArea.text.length === 0
|
visible: sendingTextArea.text.length === 0 && mainItem.selectedFilesCount === 0
|
||||||
style: ButtonStyle.noBackground
|
style: ButtonStyle.noBackground
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
icon.source: AppIcons.microphone
|
icon.source: AppIcons.microphone
|
||||||
|
|
@ -199,7 +199,7 @@ Control.Control {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BigButton {
|
BigButton {
|
||||||
visible: sendingTextArea.text.length !== 0
|
visible: sendingTextArea.text.length !== 0 || mainItem.selectedFilesCount > 0
|
||||||
style: ButtonStyle.noBackgroundOrange
|
style: ButtonStyle.noBackgroundOrange
|
||||||
icon.source: AppIcons.paperPlaneRight
|
icon.source: AppIcons.paperPlaneRight
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
|
||||||
|
|
@ -446,6 +446,7 @@ RowLayout {
|
||||||
Control.SplitView.preferredHeight: mainItem.chat?.core.isReadOnly ? 0 : height
|
Control.SplitView.preferredHeight: mainItem.chat?.core.isReadOnly ? 0 : height
|
||||||
Control.SplitView.minimumHeight: mainItem.chat?.core.isReadOnly ? 0 : Math.round(79 * DefaultStyle.dp)
|
Control.SplitView.minimumHeight: mainItem.chat?.core.isReadOnly ? 0 : Math.round(79 * DefaultStyle.dp)
|
||||||
chat: mainItem.chat
|
chat: mainItem.chat
|
||||||
|
selectedFilesCount: contents.count
|
||||||
onChatChanged: {
|
onChatChanged: {
|
||||||
if (chat) messageSender.text = mainItem.chat.core.sendingText
|
if (chat) messageSender.text = mainItem.chat.core.sendingText
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue