mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Add tooltips on colors for NColorChoice
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import qs.Commons
|
||||
import qs.Services.UI
|
||||
|
||||
RowLayout {
|
||||
id: root
|
||||
@@ -61,6 +62,8 @@ RowLayout {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onEntered: TooltipService.show(parent, modelData.name)
|
||||
onExited: TooltipService.hide()
|
||||
onClicked: {
|
||||
root.currentKey = modelData.key;
|
||||
root.selected(modelData.key);
|
||||
|
||||
Reference in New Issue
Block a user