From b6f401d5e9c20bd767902e46f30c080dcf4f9f13 Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Fri, 21 Feb 2025 23:42:16 -0600 Subject: [PATCH] Remove debug logs Signed-off-by: Addisu Z. Taddese --- include/gz/gui/qml/GzSpinBox.qml | 10 ---------- src/plugins/grid_config/GridConfig.qml | 1 - 2 files changed, 11 deletions(-) diff --git a/include/gz/gui/qml/GzSpinBox.qml b/include/gz/gui/qml/GzSpinBox.qml index 4202e9aa1..08e3145e3 100644 --- a/include/gz/gui/qml/GzSpinBox.qml +++ b/include/gz/gui/qml/GzSpinBox.qml @@ -29,7 +29,6 @@ Item { property int decimals: 0 onValueChanged: { - console.log("root val", value) if (!spinBox.__modifying) { spinBox.value = decimalToInt(root.value) @@ -41,7 +40,6 @@ Item { readonly property int kMaxInt: Math.pow(2, 31) - 1 function decimalToInt(decimal) { - //console.log("dec:", decimal) var result = decimal * spinBox.decimalFactor if (result >= kMaxInt) { return kMaxInt @@ -53,7 +51,6 @@ Item { } function intToDecimal(intVal) { - //console.log("int:", intVal) return intVal / spinBox.decimalFactor } @@ -92,7 +89,6 @@ Item { // cannot be modified from outside of this SpinBox element. property real __valueAsDecimal: 0.0 onValueChanged: { - console.log("spinbox val ch:", value) __valueAsDecimal = intToDecimal(value) } // Note that this is a different event than ValueChanged. The @@ -105,13 +101,9 @@ Item { // emitting the editingFinished signal so users GzSpinBox can be // notified and take the new value of the spinbox, and finally // disabling valueUpdater to restore the original bindings. - console.log("valUp before when=true", value) valueUpdater.when = true - console.log("valUp after when=true", value) root.editingFinished() - console.log("valUp before when=false", value) valueUpdater.when = false - console.log("valUp after when=false", value) __modifying = false } @@ -124,9 +116,7 @@ Item { readonly property real decimalFactor: Math.pow(10, root.decimals) onDecimalFactorChanged: { - console.log("dec chang:", decimals, root.value, spinBox.value) value = decimalToInt(__valueAsDecimal) - console.log("after dec chang:", decimals, root.value, spinBox.value) } contentItem: TextInput { diff --git a/src/plugins/grid_config/GridConfig.qml b/src/plugins/grid_config/GridConfig.qml index 82685f927..36e46b7d0 100644 --- a/src/plugins/grid_config/GridConfig.qml +++ b/src/plugins/grid_config/GridConfig.qml @@ -38,7 +38,6 @@ GridLayout { Connections { target: GridConfig function onNewParams(_hCellCount, _vCellCount, _cellLength, _pos, _rot, _color) { - console.log("newParams", _pos, _pos.x) horizontalCellCount.value = _hCellCount; verticalCellCount.value = _vCellCount; cellLength.value = _cellLength;