Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2577790
Simple.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
Simple.qml
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020-2021 Tusooa Zhu <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import
QtQuick
2.2
import
QtQuick
.
Layouts
1.15
import
QtQuick
.
Controls
2.15
import
org
.
kde
.
kirigami
2.13
as
Kirigami
ColumnLayout
{
property
var
event
property
var
sender
default
property
var
children
property
var
contentMaxWidth:
{
(
parent
.
width
// avatar size and margins
-
iconSize
-
2
*
Kirigami
.
Units
.
largeSpacing
-
2
*
Kirigami
.
Units
.
largeSpacing
)
}
id: layout
RowLayout
{
width:
parent
.
width
Layout.leftMargin:
Kirigami
.
Units
.
largeSpacing
Layout.rightMargin:
Kirigami
.
Units
.
largeSpacing
Layout.topMargin:
Kirigami
.
Units
.
largeSpacing
Kirigami
.
Avatar
{
//width: iconSize
//height: iconSize
id: avatar
Layout.alignment:
Qt
.
AlignTop
sourceSize.width:
iconSize
sourceSize.height:
iconSize
source:
sender
.
avatarMxcUri
?
matrixSdk
.
mxcUriToHttp
(
sender
.
avatarMxcUri
)
:
''
name:
sender
.
name
||
sender
.
userId
}
ColumnLayout
{
Layout.fillWidth:
true
Layout.leftMargin:
Kirigami
.
Units
.
largeSpacing
Label
{
text:
sender
.
name
||
sender
.
userId
}
RowLayout
{
id: container
Layout.fillWidth:
true
data:
layout
.
children
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 24, 2:12 PM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
90652
Default Alt Text
Simple.qml (1 KB)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment