Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
72a4766c
Commit
72a4766c
authored
May 12, 2017
by
Sylvain Berfini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified some properties
parent
3484ad6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
21 deletions
+10
-21
OutgoingMessage.qml
...hone-desktop/ui/modules/Linphone/Chat/OutgoingMessage.qml
+10
-21
No files found.
linphone-desktop/ui/modules/Linphone/Chat/OutgoingMessage.qml
View file @
72a4766c
...
...
@@ -33,35 +33,24 @@ Item {
id
:
icon
RowLayout
{
Text
{
property
bool
isNotDelivered
:
Utils
.
includes
([
ChatModel
.
MessageStatusFileTransferError
,
ChatModel
.
MessageStatusIdle
,
ChatModel
.
MessageStatusInProgress
,
ChatModel
.
MessageStatusNotDelivered
],
$chatEntry
.
status
)
property
bool
isNotDelivered
:
Utils
.
includes
([
ChatModel
.
MessageStatusFileTransferError
,
ChatModel
.
MessageStatusIdle
,
ChatModel
.
MessageStatusInProgress
,
ChatModel
.
MessageStatusNotDelivered
],
$chatEntry
.
status
)
property
bool
isRead
:
Utils
.
includes
([
ChatModel
.
MessageStatusDisplayed
],
$chatEntry
.
status
)
property
bool
isRead
:
Utils
.
includes
([
ChatModel
.
MessageStatusDisplayed
],
$chatEntry
.
status
)
Text
{
text
:
isNotDelivered
?
qsTr
(
"
Error
"
)
:
isRead
?
qsTr
(
"
Read
"
)
:
qsTr
(
"
Delivered
"
)
color
:
isNotDelivered
?
Colors
.
error
:
isRead
?
Colors
.
read
:
Colors
.
delivered
font.pointSize
:
ChatStyle
.
entry
.
message
.
outgoing
.
fontSize
}
Icon
{
property
bool
isNotDelivered
:
Utils
.
includes
([
ChatModel
.
MessageStatusFileTransferError
,
ChatModel
.
MessageStatusIdle
,
ChatModel
.
MessageStatusInProgress
,
ChatModel
.
MessageStatusNotDelivered
],
$chatEntry
.
status
)
property
bool
isRead
:
Utils
.
includes
([
ChatModel
.
MessageStatusDisplayed
],
$chatEntry
.
status
)
icon
:
isNotDelivered
?
'
chat_error
'
:
isRead
?
'
chat_read
'
:
'
chat_delivered
'
iconSize
:
ChatStyle
.
entry
.
message
.
outgoing
.
sendIconSize
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment