Commit graph

17 commits

Author SHA1 Message Date
Candice Bentéjac
db7fdefacb [ImageGallery] Check the intrinsics model is not null before using it 2023-07-04 11:59:35 +02:00
Candice Bentéjac
8c494198e0 [qml] Qt5.15: Update syntax for slots
Slots now need to be written as function; the previous syntax is
deprecated.
2023-07-03 12:11:33 +02:00
Candice Bentéjac
9b5dd40b02 [qml] Qt5.15: Upgrade all QtQuick modules 2023-07-03 12:11:29 +02:00
Candice Bentéjac
59be396244 [ui] Prevent editing the intrinsics of temporary CameraInit nodes
As the temporary CameraInit nodes are not really part of the graph, their
attributes cannot be edited. By default, the intrinsics can be edited for
any CameraInit node from the intrinsics table.

For temporary CameraInit nodes, we want the intrinsics to be displayed in
read-only mode to ensure that the user cannot attempt to edit them, which
would cause errors.

Upon its creation, the temporary CameraInit node is locked (as if it were
computed), and the intrinsics table's component are updated to be displayed
as read-only if the CameraInit node is locked.
2023-03-15 10:00:19 +01:00
Candice Bentéjac
7bdd7cf9d6 [ImageGallery] Initialize and use "attribute" properly for the intrinsics table
This commit fixes an "Unable to assign QJSValue to QObject*".

In IntrinsicDisplayDelegate, initialize the "attribute" variant to null
and set it as a parameter during the instantiation in ImageGallery.
All references to "model.display" in IntrinsicDisplayDelegate have been
replaced with a correct use of "attribute".
2023-02-15 17:32:22 +01:00
Landrodie
56d91bde1a [ui] Change intrinsic structure and key getter for table view 2021-08-23 18:18:29 +02:00
Nils Landrodie
83a404a765 [ui] Add clipping to columns
Add clipping to columns so the text doesn't overflow everywhere

Co-authored-by: Fabien Castan <fabcastan@gmail.com>
2021-08-23 17:52:43 +02:00
Landrodie
7c0a9666ff [ui] Clean code 2021-08-23 17:52:41 +02:00
Landrodie
b0254de16d [ui] UI adjustements for intrinsic display
* Width of columns is now provided by a column width provider
* Text inputs now cover all the column width
* Text inputs now are right aligned for easier reading/comparing
2021-08-23 17:52:40 +02:00
Nils Landrodie
2eb8783c95 [ui] Change Intrinsic display QML structure 2021-08-17 15:58:14 +02:00
Landrodie
7a8f78f5e1 [ui] Fix combo box height and placeholder display status 2021-08-17 15:58:14 +02:00
Landrodie
713b2f2259 [ui] Add the possibility to dynamically change attribute values 2021-08-17 15:58:14 +02:00
Landrodie
776cbe7884 [ui] Add combo box and check box for specific intrinsics 2021-08-17 15:58:14 +02:00
Landrodie
683633f19e [ui] Update intrinsic display
* Change color to match software's palette
* Use trick to remove unwanted digits when not being edited
2021-08-17 15:58:14 +02:00
Landrodie
b0ee91dde2 [ui] Remove old display method files
Remove the files used when the display was made by a list view based on the attribute editor.
2021-08-17 15:58:14 +02:00
Landrodie
0deb9b49cf [wip] Update intrinsic parsing 2021-08-17 15:58:14 +02:00
Landrodie
88cd6fb85a [wip] Add table view to display intrinsics infos 2021-08-17 15:58:14 +02:00