Commit graph

17 commits

Author SHA1 Message Date
Candice Bentéjac
13b8266d14 [Viewer] Clean-up: Harmonize syntax across all the files 2023-11-06 16:28:21 +01:00
Candice Bentéjac
9249615baf [Viewer] ImageMetadataView: Check that value is set before assigning it
This commit fixes the following errors:
- "<Unknown File>: Can't assign to existing role 'value' of different
type [VariantMap -> String]" which occurs whenever the metadata view is
enabled and appears if at least one of the metadata keys has an empty
value;
- "Unable to assign [undefined] to QString" which occurs whenever the
search bar is cleared.
2023-11-06 16:28:20 +01:00
Candice Bentéjac
091346cbb8 [qml] Optimize QML files and fix syntax warnings
This commit addresses warnings that were raised by QtCreator's linter:
- IDs declared more than once
- variables declared more than once in the same scope
- type coercions
- variables declared as "var" when their type is known
- unclosed "case" in switch-case
2023-07-04 12:04:14 +02:00
Candice Bentéjac
62ba08447d [qml] Qt5.15: Upgrade all remaining modules
The upgrade concerns the following modules:
- QtCharts
- QtPositioning
- QtLocation
- QtGraphicalEffects
- QtQml
2023-07-03 12:11:32 +02:00
Candice Bentéjac
9b5dd40b02 [qml] Qt5.15: Upgrade all QtQuick modules 2023-07-03 12:11:29 +02:00
Loïc Vital
e24310d1a1 [ui] more flexible filtering mechanism + filter with viewIds 2022-11-18 10:03:03 +01:00
Fabien Castan
a11b5d51aa [ui] Viewer2D: add a summary to the image metadata tab 2020-12-31 14:10:28 +01:00
Fabien Castan
efaf5eaacc [ui] metadata: add support for groups defined by "/" instead of ":"
Also supports multiple "/" or ":".
2020-06-21 00:20:36 +02:00
Theo
150e142f92 wip [ui] display global stats from sfm: residuals,landmarks per view 2020-04-29 20:25:46 +02:00
Fabien Castan
c9c24b7ff0 [ui] Viewer2D: avoid error on empty metadata 2020-03-10 12:02:48 +01:00
Yann Lanthony
b46a2dbba1 [ui] Controls: add SearchBar component + better keyboard focus handling
* use it in MetadataListView and GraphEditor 'add Node' menu
* GraphEditor: forward MenuItem key events to searchBar to be able to continue editing the filter even if it lost active focus
2019-01-07 16:48:17 +01:00
Yann Lanthony
2f2390e465 [ui] fix Palette propagation
* bugfix: in latest PySide2 versions, application palette is not properly applied to all QtQuick Controls 2 components. Force this by exposing QApplication palette and bind it to the root ApplicationWindow.
* rename all "palette" ids to "activePalette" to avoid clashes with "palette" property on QtQuick Controls 2
* use parent component palette when it makes sense to propagate active/disabled style (instead of always using Active SystemPalette)
2018-05-28 15:30:09 +02:00
Yann Lanthony
cfaa0bc012 [ui] Viewer2D: display image source path
* display selectable-by-mouse source filepath
* add radius property to FloatingPane to control border radius from outside
* use FloatingPane in ImageMetadataView
2018-04-16 12:14:04 +02:00
Yann Lanthony
b64cfc856c [ui] ImageMetadataView: display image location on map when available 2018-04-13 19:29:30 +02:00
Yann Lanthony
9501307256 [ui] MetadataView: move model delegate declatation in the ListView 2018-02-16 13:03:56 +01:00
Yann Lanthony
d2da971169 [ui] improve SortFilterDelegateModel
* use variant for filterValue and implement different logics to test filter matching based on value type
* allow redefinition of modelData and respectFilter functions to customize logic from outisde if need be
* add convenient 'reverseSortOrder' method
2018-02-16 13:02:18 +01:00
Yann Lanthony
53764812bd [ui] add ImageMetadataView + integration in Viewer2D
* display image metadata as a sorted table view with filtering  
* 2DViewer: new bottom toolbar with metadata toggle + image resolution
2018-02-15 16:10:25 +01:00