Commit 1352ed80 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Don't let track header buttons steal keyboard focus

parent 78bf9760
Pipeline #14465 passed with stage
in 15 minutes and 24 seconds
...@@ -192,6 +192,7 @@ Rectangle { ...@@ -192,6 +192,7 @@ Rectangle {
anchors.left: trackHeadColumn.left anchors.left: trackHeadColumn.left
height: trackHeadRoot.buttonSize height: trackHeadRoot.buttonSize
width: trackHeadRoot.buttonSize width: trackHeadRoot.buttonSize
focusPolicy: Qt.NoFocus
//icon.width: trackHeadRoot.iconSize //icon.width: trackHeadRoot.iconSize
//icon.height: trackHeadRoot.iconSize //icon.height: trackHeadRoot.iconSize
icon.name: trackHeadRoot.collapsed ? 'arrow-right' : 'arrow-down' icon.name: trackHeadRoot.collapsed ? 'arrow-right' : 'arrow-down'
...@@ -318,6 +319,7 @@ Rectangle { ...@@ -318,6 +319,7 @@ Rectangle {
checked: enabled && trackHeadRoot.isStackEnabled checked: enabled && trackHeadRoot.isStackEnabled
height: trackHeadRoot.buttonSize height: trackHeadRoot.buttonSize
width: trackHeadRoot.buttonSize width: trackHeadRoot.buttonSize
focusPolicy: Qt.NoFocus
//icon.width: trackHeadRoot.iconSize //icon.width: trackHeadRoot.iconSize
//icon.height: trackHeadRoot.iconSize //icon.height: trackHeadRoot.iconSize
onClicked: { onClicked: {
...@@ -329,6 +331,7 @@ Rectangle { ...@@ -329,6 +331,7 @@ Rectangle {
id: muteButton id: muteButton
height: trackHeadRoot.buttonSize height: trackHeadRoot.buttonSize
width: trackHeadRoot.buttonSize width: trackHeadRoot.buttonSize
focusPolicy: Qt.NoFocus
//icon.width: trackHeadRoot.iconSize //icon.width: trackHeadRoot.iconSize
//icon.height: trackHeadRoot.iconSize //icon.height: trackHeadRoot.iconSize
icon.name: isAudio ? (isDisabled ? 'kdenlive-hide-audio' : 'kdenlive-show-audio') : (isDisabled ? 'kdenlive-hide-video' : 'kdenlive-show-video') icon.name: isAudio ? (isDisabled ? 'kdenlive-hide-audio' : 'kdenlive-show-audio') : (isDisabled ? 'kdenlive-hide-video' : 'kdenlive-show-video')
...@@ -353,6 +356,7 @@ Rectangle { ...@@ -353,6 +356,7 @@ Rectangle {
id: lockButton id: lockButton
height: trackHeadRoot.buttonSize height: trackHeadRoot.buttonSize
width: trackHeadRoot.buttonSize width: trackHeadRoot.buttonSize
focusPolicy: Qt.NoFocus
//icon.width: trackHeadRoot.iconSize //icon.width: trackHeadRoot.iconSize
//icon.height: trackHeadRoot.iconSize //icon.height: trackHeadRoot.iconSize
icon.name: isLocked ? 'kdenlive-lock' : 'kdenlive-unlock' icon.name: isLocked ? 'kdenlive-lock' : 'kdenlive-unlock'
......
Markdown is supported
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