mirror of
https://github.com/overte-org/overte.git
synced 2025-04-29 22:02:38 +02:00
29 lines
694 B
QML
29 lines
694 B
QML
import Hifi 1.0 as Hifi
|
|
import QtQuick 2.3 as Original
|
|
import "controls"
|
|
import "styles"
|
|
|
|
Hifi.Tooltip {
|
|
id: root
|
|
HifiConstants { id: hifi }
|
|
x: lastMousePosition.x
|
|
y: lastMousePosition.y
|
|
implicitWidth: border.implicitWidth
|
|
implicitHeight: border.implicitHeight
|
|
|
|
Border {
|
|
id: border
|
|
anchors.fill: parent
|
|
implicitWidth: text.implicitWidth
|
|
implicitHeight: Math.max(text.implicitHeight, 64)
|
|
|
|
Text {
|
|
id: text
|
|
anchors.fill: parent
|
|
anchors.margins: 16
|
|
font.pixelSize: hifi.fonts.pixelSize / 2
|
|
text: root.text
|
|
wrapMode: Original.Text.WordWrap
|
|
}
|
|
}
|
|
}
|