You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
wow-app/components/TipItem.qml

45 lines
994 B

import QtQuick 2.2
import QtQuick.Window 2.1
10 years ago
Window {
10 years ago
property alias text: content.text
property alias containsMouse: tipArea.containsMouse
flags: Qt.ToolTip
color: "transparent"
height: rect.height + tip.height
width: rect.width
10 years ago
MouseArea {
id: tipArea
hoverEnabled: true
anchors.fill: parent
10 years ago
}
Rectangle {
id: rect
width: content.width + 12
height: content.height + 17
color: "#FF6C3C"
//radius: 3
Image {
id: tip
anchors.top: parent.bottom
anchors.left: parent.left
anchors.leftMargin: 5
source: "../images/tip.png"
}
Text {
id: content
anchors.horizontalCenter: parent.horizontalCenter
y: 6
lineHeight: 0.7
font.family: "Arial"
font.pixelSize: 12
font.letterSpacing: -1
color: "#FFFFFF"
}
10 years ago
}
}