fixed popups creations for instrument item delegate
This commit is contained in:
parent
e927e90b00
commit
56a65a2cdd
|
@ -242,24 +242,6 @@ Item {
|
|||
onVisibleChanged: {
|
||||
treeItemDelegateLoader.updateIsSelected()
|
||||
}
|
||||
|
||||
property var contentYBackup: 0
|
||||
|
||||
onPopupOpened: {
|
||||
contentYBackup = flickable.contentY
|
||||
var mappedPopupY = mapToItem(flickable, popupX, popupY).y
|
||||
|
||||
if (mappedPopupY + popupHeight < flickable.height - contentColumn.sideMargin) {
|
||||
return
|
||||
}
|
||||
|
||||
var hiddenPopupPartHeight = Math.abs(flickable.height - (mappedPopupY + popupHeight))
|
||||
flickable.contentY += hiddenPopupPartHeight + contentColumn.sideMargin
|
||||
}
|
||||
|
||||
onPopupClosed: {
|
||||
flickable.contentY = contentYBackup
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -45,9 +45,6 @@ Item {
|
|||
signal clicked(var mouse)
|
||||
signal focusActived()
|
||||
|
||||
signal popupOpened(var popupX, var popupY, var popupHeight)
|
||||
signal popupClosed()
|
||||
|
||||
QtObject {
|
||||
id: prv
|
||||
|
||||
|
|
Loading…
Reference in a new issue