1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-24 11:17:15 +01:00
monero-gui/components/TipItem.qml

45 lines
994 B
QML
Raw Normal View History

import QtQuick 2.2
import QtQuick.Window 2.1
2014-07-07 19:08:30 +02:00
Window {
2014-07-07 19:08:30 +02:00
property alias text: content.text
property alias containsMouse: tipArea.containsMouse
flags: Qt.ToolTip
color: "transparent"
height: rect.height + tip.height
width: rect.width
2014-07-07 19:08:30 +02:00
MouseArea {
id: tipArea
hoverEnabled: true
anchors.fill: parent
2014-07-07 19:08:30 +02:00
}
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"
}
2014-07-07 19:08:30 +02:00
}
}