Fix tooltip display in app grid
This commit is contained in:
parent
b53ef35a85
commit
b7cbd99212
1 changed files with 3 additions and 1 deletions
|
|
@ -74,6 +74,7 @@ CenteredGridView {
|
||||||
grid: appGrid
|
grid: appGrid
|
||||||
|
|
||||||
property alias appContextMenu: appContextMenuLoader.item
|
property alias appContextMenu: appContextMenuLoader.item
|
||||||
|
property alias appNameText: appNameTextLoader.item
|
||||||
|
|
||||||
// Dim the app if it's hidden
|
// Dim the app if it's hidden
|
||||||
opacity: model.hidden ? 0.4 : 1.0
|
opacity: model.hidden ? 0.4 : 1.0
|
||||||
|
|
@ -106,7 +107,7 @@ CenteredGridView {
|
||||||
ToolTip.text: model.name
|
ToolTip.text: model.name
|
||||||
ToolTip.delay: 1000
|
ToolTip.delay: 1000
|
||||||
ToolTip.timeout: 5000
|
ToolTip.timeout: 5000
|
||||||
ToolTip.visible: (parent.hovered || parent.highlighted) && (!appNameText.visible || appNameText.truncated)
|
ToolTip.visible: (parent.hovered || parent.highlighted) && (!appNameText || appNameText.truncated)
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|
@ -170,6 +171,7 @@ CenteredGridView {
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
id: appNameTextLoader
|
||||||
active: appIcon.isPlaceholder
|
active: appIcon.isPlaceholder
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue