mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-08 07:10:32 +00:00
2c8d634b5b
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
20 lines
437 B
QML
20 lines
437 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
|
|
Text {
|
|
id: text
|
|
|
|
signal click()
|
|
property string tooltip
|
|
|
|
HoverHandler { id: hoverHandler }
|
|
TapHandler { onTapped: { click() } }
|
|
|
|
font.bold: true
|
|
font.underline: hoverHandler.hovered
|
|
font.pixelSize: theme.fontSizeSmall
|
|
ToolTip.text: tooltip
|
|
ToolTip.visible: tooltip !== "" && hoverHandler.hovered
|
|
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
|
|
}
|