Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Network
Kaidan
Commits
9fe02a33
Verified
Commit
9fe02a33
authored
Oct 19, 2019
by
cacahueto
Committed by
Linus Jahn
Oct 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings on chat messages
parent
3ea3ca48
Pipeline
#9501
passed with stages
in 31 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
src/qml/elements/ChatMessage.qml
src/qml/elements/ChatMessage.qml
+11
-10
No files found.
src/qml/elements/ChatMessage.qml
View file @
9fe02a33
...
...
@@ -151,21 +151,22 @@ RowLayout {
RowLayout
{
id
:
spoilerHintRow
visible
:
isSpoiler
MouseArea
{
anchors.fill
:
parent
acceptedButtons
:
Qt
.
LeftButton
|
Qt
.
RightButton
onClicked
:
{
if
(
mouse
.
button
===
Qt
.
LeftButton
)
{
isShowingSpoiler
=
!
isShowingSpoiler
}
}
}
Controls.Label
{
id
:
dateLabeltest
text
:
spoilerHint
==
""
?
qsTr
(
"
Spoiler
"
)
:
spoilerHint
color
:
sentByMe
?
Kirigami
.
Theme
.
textColor
:
Kirigami
.
Theme
.
complementaryTextColor
font.pixelSize
:
Kirigami
.
Units
.
gridUnit
*
0.8
MouseArea
{
anchors.fill
:
parent
acceptedButtons
:
Qt
.
LeftButton
|
Qt
.
RightButton
onClicked
:
{
if
(
mouse
.
button
===
Qt
.
LeftButton
)
{
isShowingSpoiler
=
!
isShowingSpoiler
}
}
}
}
Item
{
...
...
@@ -220,7 +221,7 @@ RowLayout {
}
property
string
sourceUrl
:
"
file://
"
+
mediaLocation
Layout.maximumWidth
:
root
.
width
-
Kirigami
.
Units
.
gridUnit
*
6
Layout.preferredHeight
:
loaded
?
item
.
paintedHeight
:
0
Layout.preferredHeight
:
item
?
item
.
paintedHeight
:
0
}
...
...
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