mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-31 15:28:35 +02:00
[GraphEditor] Clean-up: Harmonize syntax across all files
This commit is contained in:
parent
2bdf061d2e
commit
e9d80611c7
15 changed files with 341 additions and 375 deletions
|
@ -18,7 +18,7 @@ ColumnLayout {
|
|||
|
||||
onChunksChanged: {
|
||||
// When the list changes, ensure the current index is in the new range
|
||||
if(currentIndex >= chunks.count)
|
||||
if (currentIndex >= chunks.count)
|
||||
currentIndex = chunks.count-1
|
||||
}
|
||||
|
||||
|
@ -39,8 +39,7 @@ ColumnLayout {
|
|||
focus: true
|
||||
currentIndex: root.currentIndex
|
||||
onCurrentIndexChanged: {
|
||||
if(chunksLV.currentIndex !== root.currentIndex)
|
||||
{
|
||||
if (chunksLV.currentIndex !== root.currentIndex) {
|
||||
// When the list is resized, the currentIndex is reset to 0.
|
||||
// So here we force it to keep the binding.
|
||||
chunksLV.currentIndex = Qt.binding(function() { return root.currentIndex })
|
||||
|
@ -67,7 +66,7 @@ ColumnLayout {
|
|||
}
|
||||
highlight: Component {
|
||||
Rectangle {
|
||||
visible: true // !root.chunksSummary
|
||||
visible: true // !root.chunksSummary
|
||||
color: activePalette.highlight
|
||||
opacity: 0.3
|
||||
z: 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue