Commit 29135b6b authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Fix word wrap

parent 575cb06e
......@@ -4,42 +4,34 @@
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
import QtQuick 2.0
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.12
import QtQml.Models 2.15
import org.kde.kirigami 2.14 as Kirigami
Item {
id: root
implicitWidth: Kirigami.Units.gridUnit * 35
implicitHeight: permissionsColumn.height + Kirigami.Units.gridUnit * 2
ColumnLayout {
visible: list.model.rowCount() > 0
ColumnLayout {
id: permissionsColumn
width: root.width
Kirigami.Heading {
text: i18nc("%1 is the name of the application", "Permissions for %1", resource.name)
font.weight: Font.DemiBold
level: 2
Layout.fillWidth: true
wrapMode: Text.Wrap
}
Kirigami.Heading {
text: i18nc("%1 is the name of the application", "Permissions for %1", resource.name)
font.weight: Font.DemiBold
level: 2
Layout.fillWidth: true
wrapMode: Text.Wrap
}
Instantiator {
id: list
model: resource.showPermissions()
Repeater {
id: list
model: resource.showPermissions()
Kirigami.BasicListItem {
parent: permissionsColumn
text: model.brief
subtitle: model.description
icon: model.icon
hoverEnabled: false
width: permissionsColumn.width
}
delegate: Kirigami.BasicListItem {
Layout.fillWidth: true
text: model.brief
subtitle: model.description
icon: model.icon
subtitleItem.wrapMode: Text.WordWrap
hoverEnabled: false
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment