Commit 2312bdeb authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Ensure monitor toolbar buttons don't steal focus

parent a89d9143
Pipeline #80414 canceled with stage
......@@ -49,6 +49,7 @@ MouseArea {
id: fullscreenButton
objectName: "fullScreen"
icon.name: "view-fullscreen"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Switch Full Screen")
......@@ -58,6 +59,7 @@ MouseArea {
ToolButton {
objectName: "switchOverlay"
icon.name: "view-grid"
focusPolicy: Qt.NoFocusv
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Change Overlay")
......@@ -74,6 +76,7 @@ MouseArea {
ToolButton {
objectName: "nextKeyframe"
icon.name: "keyframe-next"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Go to Next Keyframe")
......@@ -83,6 +86,7 @@ MouseArea {
ToolButton {
objectName: "prevKeyframe"
icon.name: "keyframe-previous"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Go to Previous Keyframe")
......@@ -92,6 +96,7 @@ MouseArea {
ToolButton {
objectName: "addKeyframe"
icon.name: "keyframe-add"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Add/Remove Keyframe")
......@@ -101,6 +106,7 @@ MouseArea {
ToolButton {
icon.name: "keyframe-record"
ToolTip.visible: hovered
focusPolicy: Qt.NoFocus
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Automatic Keyframes")
ToolTip.timeout: 3000
......@@ -111,6 +117,7 @@ MouseArea {
}
ToolButton {
icon.name: "zoom-in"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Zoom in")
......@@ -119,6 +126,7 @@ MouseArea {
}
ToolButton {
icon.name: "zoom-out"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Zoom out")
......@@ -128,6 +136,7 @@ MouseArea {
ToolButton {
objectName: "moveBar"
icon.name: "transform-move-horizontal"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Move Toolbar")
......
......@@ -62,6 +62,7 @@ MouseArea {
}
ToolButton {
icon.name: "zoom-in"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Zoom in")
......@@ -74,6 +75,7 @@ MouseArea {
ToolButton {
icon.name: "zoom-out"
ToolTip.visible: hovered
focusPolicy: Qt.NoFocus
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Zoom out")
ToolTip.timeout: 3000
......@@ -85,6 +87,7 @@ MouseArea {
ToolButton {
objectName: "moveBar"
icon.name: "transform-move-horizontal"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Move Toolbar")
......
......@@ -63,6 +63,7 @@ MouseArea {
ToolButton {
objectName: "switchOverlay"
icon.name: "view-grid"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Change Overlay")
......@@ -78,6 +79,7 @@ MouseArea {
}
ToolButton {
icon.name: "zoom-in"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Zoom in")
......@@ -89,6 +91,7 @@ MouseArea {
}
ToolButton {
icon.name: "zoom-out"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Zoom out")
......@@ -101,6 +104,7 @@ MouseArea {
ToolButton {
objectName: "addMarker"
icon.name: "list-add"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: root.isClipMonitor ? i18n("Add Marker") : i18n("Add Guide")
......@@ -113,6 +117,7 @@ MouseArea {
ToolButton {
objectName: "removeMarker"
icon.name: "list-remove"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: root.isClipMonitor ? i18n("Remove Marker") : i18n("Remove Guide")
......@@ -125,6 +130,7 @@ MouseArea {
ToolButton {
objectName: "moveBar"
icon.name: "transform-move-horizontal"
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.text: i18n("Move Toolbar")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment