mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 10:59:30 -04:00
fix: Replace to custom tooltip
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
@@ -9,6 +10,12 @@ Rectangle {
|
||||
property alias text: badgeText.text
|
||||
property alias hovered: mouse.hovered
|
||||
|
||||
QoAToolTip {
|
||||
visible: root.hovered && root.ToolTip.text.length > 0
|
||||
text: root.ToolTip.text
|
||||
delay: root.ToolTip.delay
|
||||
}
|
||||
|
||||
implicitWidth: badgeText.implicitWidth + root.radius
|
||||
implicitHeight: badgeText.implicitHeight + 6
|
||||
color: palette.button
|
||||
|
||||
Reference in New Issue
Block a user