allow setting a timeout to manual sleep inhibitor

This commit is contained in:
shouya
2025-11-11 13:46:17 +09:00
parent ec328f348c
commit d85f426b15
4 changed files with 158 additions and 20 deletions
+2
View File
@@ -30,6 +30,7 @@ Rectangle {
signal clicked
signal rightClicked
signal middleClicked
signal wheel
implicitWidth: applyUiScale ? Math.round(baseSize * Style.uiScaleRatio) : Math.round(baseSize)
implicitHeight: applyUiScale ? Math.round(baseSize * Style.uiScaleRatio) : Math.round(baseSize)
@@ -108,5 +109,6 @@ Rectangle {
root.middleClicked()
}
}
onWheel: wheel => root.wheel(wheel.angleDelta.y)
}
}