This commit is contained in:
quadbyte 2025-08-09 23:58:53 -04:00
parent ec3bff68ac
commit 1b69bab95f
2 changed files with 1 additions and 1 deletions

View file

@ -73,7 +73,7 @@ PanelWindow {
Layout.alignment: Qt.AlignVCenter
}
Clock {}
NClock {}
NIconButton {
id: demoPanelToggler

View file

@ -1,49 +0,0 @@
import QtQuick
import qs.Services
import qs.Widgets
Rectangle {
id: root
readonly property real scaling: Scaling.scale(screen)
width: textItem.paintedWidth
height: textItem.paintedHeight
color: "transparent"
NText {
id: textItem
text: Time.time
anchors.centerIn: parent
}
MouseArea {
id: clockMouseArea
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
hoverEnabled: true
onEntered: {
if (!calendar.visible) {
tooltip.show()
}
}
onExited: {
tooltip.hide()
}
onClicked: function () {
calendar.visible = !calendar.visible
tooltip.hide()
}
}
NCalendar {
id: calendar
visible: false
}
NTooltip {
id: tooltip
text: Time.dateString
target: root
}
}