Skip to content

Commit

Permalink
Remove debug logs
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
  • Loading branch information
azeey committed Feb 22, 2025
1 parent 9e7a0c8 commit b6f401d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions include/gz/gui/qml/GzSpinBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ Item {
property int decimals: 0

onValueChanged: {
console.log("root val", value)
if (!spinBox.__modifying)
{
spinBox.value = decimalToInt(root.value)
Expand All @@ -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
Expand All @@ -53,7 +51,6 @@ Item {
}

function intToDecimal(intVal) {
//console.log("int:", intVal)
return intVal / spinBox.decimalFactor
}

Expand Down Expand Up @@ -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
Expand All @@ -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
}

Expand All @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion src/plugins/grid_config/GridConfig.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b6f401d

Please sign in to comment.