Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2577733
Audio.qml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
Audio.qml
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020-2023 Tusooa Zhu <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import
QtQuick
2.15
import
QtQuick
.
Layouts
1.15
import
QtQuick
.
Controls
2.15
import
moe
.
kazv
.
mxc
.
kazv
0.0
as
MK
import
QtMultimedia
5.15
import
org
.
kde
.
kirigami
2.13
as
Kirigami
import
'.'
as
Types
import
'..'
as
Kazv
Simple
{
id: upper
property
var
gender:
'neutral'
property
var
body:
event
.
content
.
body
property
var
mxcUri:
event
.
content
.
url
property
var
audioUri:
matrixSdk
.
mxcUriToHttp
(
mxcUri
)
property
var
innerContentWidth:
upper
.
contentMaxWidth
-
bubble
.
bubbleSpacing
Types
.
MediaBubble
{
id: bubble
eventContent:
event
.
content
ColumnLayout
{
property
var
msgLabel:
Kazv
.
SelectableText
{
Layout.fillWidth:
true
wrapMode:
Text
.
Wrap
text:
l10n
.
get
(
'event-message-audio-sent'
,
{
gender
,
body
})
}
property
var
audio:
Audio
{
id: audio
source:
audioUri
autoLoad:
false
autoPlay:
false
}
property
var
playLabel:
Label
{
Layout.fillWidth:
true
wrapMode:
Text
.
Wrap
text:
l10n
.
get
(
'event-message-audio-play-audio'
)
TapHandler
{
onSingleTapped:
{
audio
.
play
()
}
}
}
data:
[
msgLabel
,
audio
,
playLabel
,
bubble
.
mediaFileMenu
,
bubble
.
progressBar
]
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 24, 1:07 PM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
97098
Default Alt Text
Audio.qml (1 KB)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment