[ui] GraphEditor: Use nodes' label instead of type for CompatibilityManager

Also extend the width of the "Node" column to ensure that all nodes,
even those with a long name, can be displayed correctly without overlapping
on the "Issue" column.
This commit is contained in:
Candice Bentéjac 2023-07-24 11:55:10 +02:00
parent 49c11a9b9a
commit 0e2aaa1c50

View file

@ -78,7 +78,7 @@ MessageDialog {
background: Rectangle { color: Qt.darker(parent.palette.window, 1.15) }
RowLayout {
width: parent.width
Label { text: "Node"; Layout.preferredWidth: 130; font.bold: true }
Label { text: "Node"; Layout.preferredWidth: 150; font.bold: true }
Label { text: "Issue"; Layout.fillWidth: true; font.bold: true }
Label { text: "Upgradable"; font.bold: true }
}
@ -93,8 +93,8 @@ MessageDialog {
anchors.horizontalCenter: parent != null ? parent.horizontalCenter : undefined
Label {
Layout.preferredWidth: 130
text: compatibilityNodeDelegate.node ? compatibilityNodeDelegate.node.nodeType : ""
Layout.preferredWidth: 150
text: compatibilityNodeDelegate.node ? compatibilityNodeDelegate.node.defaultLabel : ""
}
Label {
Layout.fillWidth: true