Give the bubble component a more descriptive name

This commit is contained in:
Tobias Fella
2021-04-09 23:04:26 +02:00
parent 41b53b5245
commit 25a8a8b011

View File

@@ -46,7 +46,7 @@ QQC2.ItemDelegate {
// updates the global hover component to point to this delegate, and update its position // updates the global hover component to point to this delegate, and update its position
function updateHoverComponent() { function updateHoverComponent() {
hoverComponent.bubble = controlContainer hoverComponent.bubble = bubble
hoverComponent.updateFunction = updateHoverComponent; hoverComponent.updateFunction = updateHoverComponent;
hoverComponent.event = model hoverComponent.event = model
} }
@@ -104,9 +104,8 @@ QQC2.ItemDelegate {
visible: !model.showAuthor && Config.showAvatarInTimeline visible: !model.showAuthor && Config.showAvatarInTimeline
} }
// bubble
QQC2.ItemDelegate { QQC2.ItemDelegate {
id: controlContainer id: bubble
Layout.maximumWidth: mainColumn.width - Kirigami.Units.gridUnit * 2 - Kirigami.Units.largeSpacing * 2 Layout.maximumWidth: mainColumn.width - Kirigami.Units.gridUnit * 2 - Kirigami.Units.largeSpacing * 2
implicitHeight: contentItem.implicitHeight + topPadding implicitHeight: contentItem.implicitHeight + topPadding
topPadding: Kirigami.Units.largeSpacing topPadding: Kirigami.Units.largeSpacing