mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-04-28 11:44:17 +00:00
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
|
|
}
|