mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-04 01:08:26 +02:00
Merge pull request #2532 from alicevision/fix/descriptionAttributeTooltip
[AttributeItemDelegate] Position the attribute description tooltip
This commit is contained in:
commit
ccd5f369e4
2 changed files with 10 additions and 4 deletions
|
@ -74,6 +74,9 @@ RowLayout {
|
|||
ToolTip {
|
||||
id: parameterTooltip
|
||||
|
||||
// Position in y at mouse position
|
||||
y: parameterMA.mouseY + 10
|
||||
|
||||
text: {
|
||||
var tooltip = ""
|
||||
if (!object.validValue && object.desc.errorMessage !== "")
|
||||
|
|
|
@ -35,10 +35,13 @@ RowLayout {
|
|||
layoutDirection: Qt.LeftToRight
|
||||
spacing: 3
|
||||
|
||||
ToolTip.text: attribute.name + ": " + attribute.type
|
||||
ToolTip.visible: nameLabel.hovered
|
||||
ToolTip.toolTip.y: nameLabel.y + nameLabel.height
|
||||
ToolTip.toolTip.x: nameLabel.x
|
||||
ToolTip {
|
||||
text: attribute.name + ": " + attribute.type
|
||||
visible: nameLabel.hovered
|
||||
|
||||
y: nameLabel.y + nameLabel.height
|
||||
x: nameLabel.x
|
||||
}
|
||||
|
||||
function updatePin(isSrc, isVisible)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue