BarSectionEdit: fix click in the background closing panel, fix ghost bg color when dragging
This commit is contained in:
parent
2872a7b5c9
commit
87d86911d7
1 changed files with 3 additions and 3 deletions
|
|
@ -240,7 +240,7 @@ NBox {
|
||||||
width: 0
|
width: 0
|
||||||
height: Style.baseWidgetSize * 1.15 * scaling
|
height: Style.baseWidgetSize * 1.15 * scaling
|
||||||
radius: Style.radiusL * scaling
|
radius: Style.radiusL * scaling
|
||||||
color: "transparent"
|
color: Color.transparent
|
||||||
border.color: Color.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderS * scaling)
|
border.width: Math.max(1, Style.borderS * scaling)
|
||||||
opacity: 0.7
|
opacity: 0.7
|
||||||
|
|
@ -305,7 +305,7 @@ NBox {
|
||||||
|
|
||||||
acceptedButtons: Qt.LeftButton
|
acceptedButtons: Qt.LeftButton
|
||||||
preventStealing: false
|
preventStealing: false
|
||||||
propagateComposedEvents: !dragStarted
|
propagateComposedEvents: false
|
||||||
hoverEnabled: true // Always track mouse for drag operations
|
hoverEnabled: true // Always track mouse for drag operations
|
||||||
|
|
||||||
property point startPos: Qt.point(0, 0)
|
property point startPos: Qt.point(0, 0)
|
||||||
|
|
@ -458,7 +458,7 @@ NBox {
|
||||||
// Setup ghost widget
|
// Setup ghost widget
|
||||||
if (draggedWidget) {
|
if (draggedWidget) {
|
||||||
dragGhost.width = draggedWidget.width
|
dragGhost.width = draggedWidget.width
|
||||||
dragGhost.color = root.getWidgetColor(draggedModelData)
|
dragGhost.color = root.getWidgetColor(draggedModelData)[0]
|
||||||
ghostText.text = draggedModelData.id
|
ghostText.text = draggedModelData.id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue