[qt6][qml] Clean-up code and harmonize comments

This commit is contained in:
Candice Bentéjac 2024-10-10 20:18:51 +02:00
parent b12d1fed06
commit 5a0b1c0c95
85 changed files with 575 additions and 538 deletions

View file

@ -6,11 +6,11 @@ import Controls 1.0
import MaterialIcons 2.2
import Utils 1.0
/**
* NodeEditor allows to visualize and edit the parameters of a Node.
* It mainly provides an attribute editor and a log inspector.
*/
Panel {
id: root
@ -36,7 +36,7 @@ Panel {
if (node !== null && (node.isFinishedOrRunning() || globalStatus == "ERROR")) {
computationInfo.text = Format.sec2timeStr(node.elapsedTime)
}
else{
else {
computationInfo.text = ""
}
}
@ -118,6 +118,7 @@ Panel {
Menu {
id: settingsMenu
y: parent.height
Menu {
id: filterAttributesMenu
title: "Filter Attributes"
@ -139,7 +140,9 @@ Panel {
enabled: tabBar.currentIndex === 0
}
}
MenuSeparator {}
RowLayout {
CheckBox {
id: defaultToggle
@ -158,7 +161,9 @@ Panel {
enabled: tabBar.currentIndex === 0
}
}
MenuSeparator {}
RowLayout {
CheckBox {
id: linkToggle
@ -177,7 +182,9 @@ Panel {
enabled: tabBar.currentIndex === 0
}
}
MenuSeparator {}
CheckBox {
id: advancedToggle
text: "Advanced"
@ -197,7 +204,9 @@ Panel {
enabled: root.node !== null
onClicked: Qt.openUrlExternally(Filepath.stringToUrl(root.node.internalFolder))
}
MenuSeparator {}
MenuItem {
enabled: root.node !== null
text: "Clear Pending Status"
@ -209,6 +218,7 @@ Panel {
}
}
}
ColumnLayout {
anchors.fill: parent
@ -216,7 +226,7 @@ Panel {
Loader {
active: root.isCompatibilityNode
Layout.fillWidth: true
visible: active // for layout update
visible: active // For layout update
sourceComponent: CompatibilityBadge {
canUpgrade: root.node.canUpgrade