[ui] minor UI tweaks

This commit is contained in:
Yann Lanthony 2017-11-14 18:15:45 +01:00
parent c190f418b7
commit e053bb0f45
3 changed files with 5 additions and 4 deletions

View file

@ -27,7 +27,7 @@ ColumnLayout {
Layout.fillWidth: true
clip: true
spacing: 4
ScrollBar.vertical: ScrollBar {}
ScrollBar.vertical: ScrollBar { id: scrollBar }
model: node ? node.attributes : undefined
@ -52,6 +52,7 @@ ColumnLayout {
AttributeItemDelegate {
Layout.fillWidth: true
Layout.rightMargin: scrollBar.width
height: childrenRect.height
attribute: object
}

View file

@ -102,7 +102,6 @@ Item {
node: object
width: root.nodeWidth
height: Math.max(root.nodeHeight, implicitHeight)
radius: 1
border.color: root.selectedNode == node ? Qt.darker(color, 1.8) : Qt.darker(color, 1.1)
onAttributePinCreated: registerAttributePin(attribute, pin)

View file

@ -14,7 +14,7 @@ Rectangle {
color: baseColor
opacity: 0.9
radius: 2
MouseArea {
anchors.fill: parent
drag.target: parent
@ -69,7 +69,8 @@ Rectangle {
ListView {
id: chunksListView
anchors.fill: parent
anchors.margins: 1
anchors.topMargin: 1
anchors.bottomMargin: 1
interactive: false
orientation: Qt.Horizontal