Page MenuHomePhorge

TextTemplate.qml
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

TextTemplate.qml

/*
* 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
import '.' as Types
import '..' as Kazv
Types.Simple {
id: upper
property var text
default property var children
property var innerContentWidth: upper.contentMaxWidth - bubble.bubbleSpacing
Kazv.Bubble {
id: bubble
Layout.maximumWidth: upper.contentMaxWidth
RowLayout {
//leftPadding: Kirigami.Units.largeSpacing
//spacing: Kirigami.Units.largeSpacing
Layout.maximumWidth: innerContentWidth
property var label: Label {
Layout.fillWidth: false
Layout.preferredWidth: implicitWidth
Layout.maximumWidth: innerContentWidth
wrapMode: Text.Wrap
text: upper.text
}
data: [
...(Array.isArray(upper.children) ? upper.children :
upper.children ? [upper.children] : []),
label
]
}
}
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 10:42 PM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39177
Default Alt Text
TextTemplate.qml (1 KB)

Event Timeline