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 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
|
||||
|
|
|
@ -191,6 +191,10 @@ FocusScope {
|
|||
onVisibleChanged: {
|
||||
resetDefaultValues();
|
||||
}
|
||||
colorPickerVisible: {
|
||||
return !displayPanoramaViewer.checked
|
||||
}
|
||||
|
||||
colorRGBA: {
|
||||
if(!floatImageViewerLoader.item ||
|
||||
floatImageViewerLoader.item.status !== Image.Ready)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue