mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-05 04:12:15 +02:00
[ui] CompatibilityManager: issues summary in clipboard message copying
override MessageDialog.getAsString to add compatibility report
This commit is contained in:
parent
02dc58f144
commit
99167b7152
1 changed files with 15 additions and 0 deletions
|
@ -28,6 +28,20 @@ MessageDialog {
|
||||||
return count
|
return count
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// override MessageDialog.getAsString to add compatibility report
|
||||||
|
function getAsString() {
|
||||||
|
var t = asString + "\n"
|
||||||
|
t += '-------------------------\n'
|
||||||
|
t += "Node | Issue | Upgradable\n"
|
||||||
|
t += '-------------------------\n'
|
||||||
|
for(var i=0; i<issueCount; ++i)
|
||||||
|
{
|
||||||
|
var n = nodesModel.at(i)
|
||||||
|
t += n.nodeType + " | " + n.issueDetails + " | " + n.canUpgrade + "\n"
|
||||||
|
}
|
||||||
|
t += "\n" + questionLabel.text
|
||||||
|
return t
|
||||||
|
}
|
||||||
|
|
||||||
signal upgradeDone()
|
signal upgradeDone()
|
||||||
|
|
||||||
|
@ -96,6 +110,7 @@ MessageDialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
id: questionLabel
|
||||||
text: upgradableCount ? "Upgrade all possible nodes to current version ?"
|
text: upgradableCount ? "Upgrade all possible nodes to current version ?"
|
||||||
: "Those nodes can't be upgraded, remove them manually if needed."
|
: "Those nodes can't be upgraded, remove them manually if needed."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue