mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[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:
parent
6534fc1191
commit
4a7912c0ff
2 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,8 @@ FloatingPane {
|
||||||
property string channelModeValue: channelsCtrl.value
|
property string channelModeValue: channelsCtrl.value
|
||||||
property variant colorRGBA: null
|
property variant colorRGBA: null
|
||||||
|
|
||||||
|
property bool colorPickerVisible: true
|
||||||
|
|
||||||
background: Rectangle { color: root.palette.window }
|
background: Rectangle { color: root.palette.window }
|
||||||
|
|
||||||
DoubleValidator {
|
DoubleValidator {
|
||||||
|
@ -132,6 +134,7 @@ FloatingPane {
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
visible: colorPickerVisible
|
||||||
Layout.preferredWidth: 20
|
Layout.preferredWidth: 20
|
||||||
implicitWidth: 20
|
implicitWidth: 20
|
||||||
implicitHeight: parent.height
|
implicitHeight: parent.height
|
||||||
|
@ -141,6 +144,7 @@ FloatingPane {
|
||||||
// RGBA colors
|
// RGBA colors
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 1
|
spacing: 1
|
||||||
|
visible: colorPickerVisible
|
||||||
TextField {
|
TextField {
|
||||||
id: red
|
id: red
|
||||||
property real value: root.colorRGBA ? root.colorRGBA.x : 0.0
|
property real value: root.colorRGBA ? root.colorRGBA.x : 0.0
|
||||||
|
|
|
@ -191,6 +191,10 @@ FocusScope {
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
resetDefaultValues();
|
resetDefaultValues();
|
||||||
}
|
}
|
||||||
|
colorPickerVisible: {
|
||||||
|
return !displayPanoramaViewer.checked
|
||||||
|
}
|
||||||
|
|
||||||
colorRGBA: {
|
colorRGBA: {
|
||||||
if(!floatImageViewerLoader.item ||
|
if(!floatImageViewerLoader.item ||
|
||||||
floatImageViewerLoader.item.status !== Image.Ready)
|
floatImageViewerLoader.item.status !== Image.Ready)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue