mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-31 18:06:31 +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
|
@ -20,9 +20,8 @@ MessageDialog {
|
|||
// the number of CompatibilityNodes that can be upgraded
|
||||
readonly property int upgradableCount: {
|
||||
var count = 0
|
||||
for(var i=0; i<issueCount; ++i)
|
||||
{
|
||||
if(nodesModel.at(i).canUpgrade)
|
||||
for (var i = 0; i < issueCount; ++i) {
|
||||
if (nodesModel.at(i).canUpgrade)
|
||||
count++;
|
||||
}
|
||||
return count
|
||||
|
@ -34,8 +33,7 @@ MessageDialog {
|
|||
t += '-------------------------\n'
|
||||
t += "Node | Issue | Upgradable\n"
|
||||
t += '-------------------------\n'
|
||||
for(var i=0; i<issueCount; ++i)
|
||||
{
|
||||
for (var i = 0; i < issueCount; ++i) {
|
||||
var n = nodesModel.at(i)
|
||||
t += n.nodeType + " | " + n.issueDetails + " | " + n.canUpgrade + "\n"
|
||||
}
|
||||
|
@ -108,7 +106,6 @@ MessageDialog {
|
|||
font.bold: true
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Label {
|
||||
|
@ -126,11 +123,9 @@ MessageDialog {
|
|||
}
|
||||
|
||||
onAccepted: {
|
||||
if(upgradableCount)
|
||||
{
|
||||
if (upgradableCount) {
|
||||
uigraph.upgradeAllNodes()
|
||||
upgradeDone()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue