mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
69782cf713
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
|
|
}
|