Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
29135b6b
Commit
29135b6b
authored
May 06, 2022
by
Aleix Pol Gonzalez
🐧
Browse files
Fix word wrap
parent
575cb06e
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/FlatpakBackend/qml/PermissionsList.qml
View file @
29135b6b
...
...
@@ -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
}
Instanti
at
o
r
{
id
:
list
model
:
resource
.
showPermissions
()
Repe
at
e
r
{
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
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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