WIP: Add word wrap #22
1 changed files with 16 additions and 0 deletions
|
|
@ -75,6 +75,19 @@ Kirigami.ApplicationWindow {
|
|||
text: mod.name
|
||||
type: Kirigami.Heading.Type.Primary
|
||||
wrapMode: Text.WordWrap
|
||||
maximumLineCount: 2
|
||||
elide: Text.ElideRight
|
||||
|
||||
// https://stackoverflow.com/a/50504960
|
||||
Controls.ToolTip.visible: labelArea.containsMouse && truncated
|
||||
Controls.ToolTip.text: mod.name
|
||||
Controls.ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||
|
||||
MouseArea {
|
||||
id: labelArea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
}
|
||||
}
|
||||
Kirigami.Separator {
|
||||
Layout.fillWidth: true
|
||||
|
|
@ -86,6 +99,9 @@ Kirigami.ApplicationWindow {
|
|||
font.italic: desc ? false : true
|
||||
text: desc ? desc : "No description available"
|
||||
wrapMode: Text.WordWrap
|
||||
|
||||
maximumLineCount: 6
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
}
|
||||
ColumnLayout {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue