Meshroom/meshroom/ui/qml/ImageGallery
Candice Bentéjac f570b37b09 [ui] ImageGallery: Disable "Visualize HDR" button after clearing images
When all the images in the gallery are cleared using the "Clear Images" or
"Clear All Images" menu action while the "Visualize HDR images" option is
turned on, the gallery is correctly emptied and the viewer correctly reset
but the button remains turned on even though there is nothing left to show.

As it is turned on (although with a "0" count), the gallery remains in
read-only mode and no more image can be dropped until the button is
manually clicked to be turned off. Even after that, it remains clickable
instead of being disabled.

This commit ensures that the button gets disabled if the number of
viewpoints is 0 (meaning the gallery is empty). That way, the button
correctly reflects the current situation, and the gallery is ready to have
images dropped.
2023-09-04 19:00:05 +02:00
..
ImageBadge.qml [qml] Qt5.15: Upgrade all QtQuick modules 2023-07-03 12:11:29 +02:00
ImageDelegate.qml [qml] Qt5.15: Upgrade all QtQuick modules 2023-07-03 12:11:29 +02:00
ImageGallery.qml [ui] ImageGallery: Disable "Visualize HDR" button after clearing images 2023-09-04 19:00:05 +02:00
IntrinsicDisplayDelegate.qml [ImageGallery] Check the intrinsics model is not null before using it 2023-07-04 11:59:35 +02:00
IntrinsicsIndicator.qml [qml] Qt5.15: Upgrade all QtQuick modules 2023-07-03 12:11:29 +02:00
qmldir [wip] Add table view to display intrinsics infos 2021-08-17 15:58:14 +02:00
SensorDBDialog.qml [qml] Qt5.15: Upgrade all QtQuick modules 2023-07-03 12:11:29 +02:00