diff --git a/src/qml/HoverActions.qml b/src/qml/HoverActions.qml index d8f990821..faf92c2d9 100644 --- a/src/qml/HoverActions.qml +++ b/src/qml/HoverActions.qml @@ -42,7 +42,7 @@ QQC2.Control { leftPadding: 0 rightPadding: 0 - x: delegate ? delegate.x + delegate.bubbleX : 0 + x: delegate ? delegate.contentX + delegate.bubbleX : 0 y: delegate ? delegate.mapToItem(parent, 0, 0).y + delegate.bubbleY - height + Kirigami.Units.smallSpacing : 0 width: delegate ? delegate.bubbleWidth : Kirigami.Units.gridUnit * 4 diff --git a/src/qml/TimelineDelegate.qml b/src/qml/TimelineDelegate.qml index 5ece332bb..fcc1c05f5 100644 --- a/src/qml/TimelineDelegate.qml +++ b/src/qml/TimelineDelegate.qml @@ -26,6 +26,13 @@ Item { */ property Item contentItem + /** + * @brief The x position of the content item. + * + * @note Used for positioning the hover actions. + */ + property real contentX: contentItemParent.x + /** * @brief Whether the delegate should always stretch to the maximum available width. */