forked from qt-creator/qt-creator
QmlDesigner: Fix GradientLine tooltip
Change-Id: I88bf3425b4ade5a80d49bb34744248431eec5128 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
a53308cde6
commit
46481bd884
@@ -223,6 +223,10 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
Tooltip {
|
||||
id: myTooltip
|
||||
}
|
||||
|
||||
Component {
|
||||
id: component
|
||||
Item {
|
||||
@@ -241,9 +245,9 @@ Item {
|
||||
if (showToolTip) {
|
||||
var currentPoint = Qt.point(gradientStopHandleMouseArea.mouseX, gradientStopHandleMouseArea.mouseY);
|
||||
var fixedGradiantStopPosition = currentGradiantStopPosition();
|
||||
Tooltip.showText(gradientStopHandleMouseArea, currentPoint, fixedGradiantStopPosition.toFixed(3));
|
||||
myTooltip.showText(gradientStopHandleMouseArea, currentPoint, fixedGradiantStopPosition.toFixed(3));
|
||||
} else {
|
||||
Tooltip.hideText()
|
||||
myTooltip.hideText()
|
||||
}
|
||||
}
|
||||
function currentGradiantStopPosition() {
|
||||
|
Reference in New Issue
Block a user