[Panorama Viewer] Disable color picker inside HdrToolbar for Panorama

We cannot retrieve mouse coordinates of images inside the panorama due to a conflict between mouse areas.
This commit is contained in:
Thomas Zorroche 2021-06-15 10:00:09 +02:00 committed by Fabien Castan
parent 6534fc1191
commit 4a7912c0ff
2 changed files with 8 additions and 0 deletions

View file

@ -24,6 +24,8 @@ FloatingPane {
property string channelModeValue: channelsCtrl.value
property variant colorRGBA: null
property bool colorPickerVisible: true
background: Rectangle { color: root.palette.window }
DoubleValidator {
@ -132,6 +134,7 @@ FloatingPane {
}
Rectangle {
visible: colorPickerVisible
Layout.preferredWidth: 20
implicitWidth: 20
implicitHeight: parent.height
@ -141,6 +144,7 @@ FloatingPane {
// RGBA colors
RowLayout {
spacing: 1
visible: colorPickerVisible
TextField {
id: red
property real value: root.colorRGBA ? root.colorRGBA.x : 0.0

View file

@ -191,6 +191,10 @@ FocusScope {
onVisibleChanged: {
resetDefaultValues();
}
colorPickerVisible: {
return !displayPanoramaViewer.checked
}
colorRGBA: {
if(!floatImageViewerLoader.item ||
floatImageViewerLoader.item.status !== Image.Ready)