Commit graph

1503 commits

Author SHA1 Message Date
fabien servant
69ea5b88d2 [qt6][Viewer3D] Fix mouse camera controller 2024-11-14 10:03:44 +01:00
Candice Bentéjac
65a014d9b1 [qt6][Viewer] Viewer2D: Fix fit() with the Sequence Player
With the Sequence Player always enabled by default, the `fit()` function
must be triggered at the right moment, and only once the layout has
been correctly initialized; otherwise, zoom factors may become negative
and the images will not be placed correctly in the viewer.

Changes in the orientation tag must be handled independently from the
state of the zoom factor.
2024-11-13 18:48:07 +01:00
Candice Bentéjac
2699bffcda [qt6][ImageGallery] IntrinsicDisplayDelegate: Support File attributes 2024-11-07 18:19:14 +01:00
Candice Bentéjac
a61231916f [qt6][GraphEditor] Node: Ensure readOnly is set with a boolean 2024-11-07 18:19:13 +01:00
Candice Bentéjac
36f7f4e420 [qt6][Viewer] Viewer2D: Fix automatic fitting for missing orientation tags 2024-11-07 18:19:08 +01:00
Fabien Servant
d4eb365ada [qt6][Viewer] Fix zoom in 8bits viewer 2024-11-07 18:15:45 +01:00
Candice Bentéjac
62f0a3e5df [qt6][Viewer3D] Change picking behavior 2024-11-07 18:15:44 +01:00
Candice Bentéjac
b884fc4e6b [qt6] Viewer3D: Reset the default render mode to "Textured" 2024-11-07 18:15:43 +01:00
Candice Bentéjac
5953ed5767 [qt6] Add QT6 support for wireframe on nvidia 2024-11-07 18:15:42 +01:00
Candice Bentéjac
5a0b1c0c95 [qt6][qml] Clean-up code and harmonize comments 2024-11-07 18:15:37 +01:00
Candice Bentéjac
b12d1fed06 [qt6][qml] Remove unnecessary module imports 2024-11-07 18:13:36 +01:00
Candice Bentéjac
c5be7e7cd4 [qt6][Charts] InteractiveChartView: Remove dead code and useless imports 2024-11-07 18:13:35 +01:00
Candice Bentéjac
039504782f [qt6][GraphEditor] Fix connections to ListAttribute pins
The callbacks of `childrenRepeater` (which was used to "fill"
`ListAttributes` with children) were not correctly set. Their prototypes
were missing the `index` argument, meaning that instead of being
provided with the child attribute that was added or deleted,
they were provided with its index in the model.

The added children attributes were also instatiated as empty attribute
pins that were still visible, thus increasing indirectly the spacing of
the initial pin.
2024-11-07 18:13:34 +01:00
Candice Bentéjac
52444ef0ad [GraphEditor] Edge: Set curve scale after initializing EdgeMouseArea
The curve scale of the mouse area for an edge used to be defined when
initializing the `EdgeMouseArea` for that edge. Setting it triggers a
chain of event that allow the mouse area to be active, thus correctly
detecting when it is being hovered or clicked on.

With Qt6, these events unfolded before the `EdgeMouseArea` had finished
initializing, which then caused it to not be active until the edge's
shape was modified (and the chain of events triggered again). It is now
set once the component has been created, so all the events can happen
in an environment where they are taken into account.
2024-11-07 18:13:33 +01:00
Candice Bentéjac
49a3fcb72f [qt6][Viewer] Viewer2D: Remove outdated sfmRequired property 2024-11-07 18:13:31 +01:00
Candice Bentéjac
8eebe5ecb9 [qt6][qml] Homepage: Improve minimum width 2024-11-07 18:13:30 +01:00
Candice Bentéjac
54b59d0c5e [qt6][qml] Push Application on the stack before loading the project
This prevents crashes when the project is done loading but
`Application` is not yet ready.
2024-11-07 18:13:29 +01:00
Candice Bentéjac
de966e38e5 [qt6][ui] AboutDialog: Display PySide's version 2024-11-07 18:13:28 +01:00
Candice Bentéjac
ec139defb7 [qt6][ImageGallery] IntrinsicDisplay: Harmonize naming of components 2024-11-07 18:13:28 +01:00
Candice Bentéjac
e97575a901 [qt6][qml] Remove QtQuick.Window imports
`QtQuick.Window` does not exist anymore with Qt6. QQuickWindow is now
directly part of the QtQuick module.
2024-11-07 18:13:27 +01:00
Candice Bentéjac
645b822e56 [qt6][GraphEditor] Fix the width for the TaskManager's list 2024-11-07 18:13:26 +01:00
Candice Bentéjac
f06c5a2663 [qt6][MaterialIcons] Fix disabled buttons' behaviour when interacted with 2024-11-07 18:13:25 +01:00
Candice Bentéjac
9fb8ea83fb [qt6][Viewer] Fix display of metadata 2024-11-07 18:13:24 +01:00
Candice Bentéjac
8007bc51e8 [qt6][GraphEditor] Set preferred size for the list of chunks 2024-11-07 18:13:23 +01:00
Candice Bentéjac
fbe72a0ad6 [qt6][GraphEditor] Correctly detect clicks on edges 2024-11-07 18:13:22 +01:00
Candice Bentéjac
66c39633b4 [qt6][Viewer3D] Use DiffuseMapMaterial for texture display
Replace `DiffuseSpecularMaterial`, which does not seem to support
correctly textures anymore, with `DiffuseMapMaterial`.
2024-11-07 18:13:21 +01:00
Candice Bentéjac
9867773953 [qt6][GraphEditor] Check for object's existence before accessing it 2024-11-07 18:13:20 +01:00
Candice Bentéjac
92e56673ed [qt6] Use JS functions format to declare explicit parameters in slots 2024-11-07 18:13:19 +01:00
Candice Bentéjac
240188c0b4 [qt6][Viewer3D] Disable wireframe mode
Disable and hide the wireframe mode as the shaders need to be updated
for RHI.
2024-11-07 18:13:18 +01:00
Candice Bentéjac
77bd2a7145 [qt6][Viewer] Viewer2D: Trigger auto-fit() on correct events
The fit must be automatically triggered when the size of the image
changes. In case the image size remains the same but the orientation tag
is updated, this means that the displayed size of the image has changed
(with the orientation taken into account, the width and height might end
up being inverted), so the fit should also be triggered.
2024-11-07 18:12:59 +01:00
Candice Bentéjac
05e7d9eaee [qt6] Use JS functions format to declare explicit parameters in slots 2024-11-07 18:09:14 +01:00
Candice Bentéjac
2b569c1fd8 [qt6][Viewer3D] Inspector3D: Set color for labels in Inspector 2024-11-07 18:09:13 +01:00
Candice Bentéjac
f6a9e5d59c [qt6][Viewer3D] Remove PointSize render state
`PointSize` is not supported by RHI.
2024-11-07 18:09:12 +01:00
Candice Bentéjac
3ff279d99a [qt6] Use JS functions format to declare explicit parameters in slots 2024-11-07 18:09:10 +01:00
Candice Bentéjac
e1ef8acadc [qt6][Viewer3D] MediaLibrary: Fix loading medias from attributes
Additionally harmonize comments and explicitly declare parameters
for slots that need them.
2024-11-07 18:09:09 +01:00
Candice Bentéjac
138cc18864 [qt6][Materials] Use correct graphics API and update SH shaders
With Qt6, OpenGL is not used directly anymore, and we thus must use
the RHI backend, set to version 1.0.

The SphericalHarmonics shaders, which were previously written in OpenGL,
need to be updated accordingly.
2024-11-07 18:09:07 +01:00
Candice Bentéjac
d5b5163828 [qt6] Remove shaders from Meshroom and move them to QtAliceVision 2024-11-07 18:09:05 +01:00
Candice Bentéjac
595e8f6c7a [qt6][qml] Do not explicitly set a Palette value with a QPalette 2024-11-07 18:09:04 +01:00
Candice Bentéjac
a62bed08eb [qt6][GraphEditor] Fix ColorDialog selection 2024-11-07 18:09:03 +01:00
Candice Bentéjac
b9ec8fe3b7 [qt6][GraphEditor] Rename identifiers for attribute items 2024-11-07 18:09:03 +01:00
Candice Bentéjac
0e71f2a520 [qt6] Update versions for all the imported modules
Qt3D.Extras cannot be updated to 2.6 yet, otherwise there are errors.
2024-11-07 18:09:01 +01:00
Candice Bentéjac
6d845376eb [qt6] Use JS functions format to declare explicit parameters in slots
This fixes all the "Injection of parameters into signal handlers
is deprecated. Use JavaScript functions with formal parameters instead."
warnings.
2024-11-07 18:08:59 +01:00
Candice Bentéjac
1b9e75cd4f [qt6] Replace Qt.labs.settings with QtCore.Settings 2024-11-07 18:08:58 +01:00
Candice Bentéjac
d5cfdb1e85 [qt6] Re-enable alternative base and keyboard shortcut to switch to it 2024-11-07 18:08:57 +01:00
Candice Bentéjac
02be73df65 [qt6] Remove properties that do not exist anymore in Qt6.6 2024-11-07 18:08:55 +01:00
Candice Bentéjac
96a70c04ff [qt6] Remove imports of QML modules that do not exist anymore with Qt6.6 2024-11-07 18:08:55 +01:00
Fabien Servant
457b640002 enable sequence player by default 2024-11-04 15:27:33 +01:00
Fabien Servant
eef1e6414e if player is at the end go back to 0 on play 2024-11-04 15:27:33 +01:00
Fabien Servant
11c28cb979 use scale instead of targetSize 2024-11-04 15:27:32 +01:00
Candice Bentéjac
12249de216 [GraphEditor] Stop manually editing pins based on the edge's visibility
Editing the pins manually was useful when trying to hide fully the
connection whenever there was an edge connected to an attribute that
was disabled. Disabled attributes now have a special display if they are
connected, meaning both ends of the edge do not need artificial updates.
2024-10-15 16:05:41 +02:00